Skip to content

Commit

Permalink
chore: build & package related chores
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Dec 18, 2024
1 parent d45b6d3 commit 486a9f7
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: "Set up Python ${{ matrix.python_version }}"
uses: actions/setup-python@v5
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11", "3.12"]
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: "Set up Python ${{ matrix.python_version }}"
uses: actions/setup-python@v5
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ temp/
# pixi environments
.pixi
pixi.lock
output
15 changes: 2 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@ default_language_version:
repos:

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: 'v9.19.0'
rev: 'v9.20.0'
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']

#- repo: https://github.com/psf/black
# rev: 24.3.0
# hooks:
# - id: black

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.13.0' # Use the sha / tag you want to point at
hooks:
Expand All @@ -26,9 +21,8 @@ repos:

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.1
rev: v0.8.3
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
Expand All @@ -55,8 +49,3 @@ repos:
args: ['--fix=no']
- id: no-commit-to-branch
args: [--branch, main]

- repo: https://github.com/Kludex/no-optional
rev: 0.4.0
hooks:
- id: no_optional
37 changes: 37 additions & 0 deletions ci/rattler-recipes/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
context:
version: "1.2.2post1"

package:
name: "build"
version: ${{ version }}

source:
- url:
- https://files.pythonhosted.org/packages/7d/46/aeab111f8e06793e4f0e421fcad593d547fb8313b50990f31681ee2fb1ad/build-1.2.2.post1.tar.gz

sha256: b36993e92ca9375a219c99e606a122ff365a760a2d4bba0caa09bd5278b608b7

build:
# Thanks to `noarch: python` this package works on all platforms
noarch: python
script:
- python -m pip install . -vv

requirements:
host:
- pip
- python 3.10
- flit-core >= 3.8
run:
- packaging >= 19.1
- pyproject_hooks
- tomli >= 1.1.0

about:
homepage: https://github.com/pypa/build
license: MIT
license_file: LICENSE
summary: A simple, correct Python build frontend
description: |
A simple, correct Python build frontend.
repository: https://github.com/pypa/build
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ select = [
"PLW",
"PIE",
]
#select = ["E", "F", "RUF100", "W", "I001"]

ignore = ["E501", "S101", "SIM118", "SIM108", "PLR2004", "PLR0913", "S110", "PIE810", "PLR0911", "PLR0915", "PLR0912", "D", "D401", "PLW0603", "PLR5501", "PLW2901", "S603", "S608", "ISC001", "PLC0206", "RUF022"]
per-file-ignores = { }

Expand Down
2 changes: 2 additions & 0 deletions src/kiara/interfaces/python_api/kiara_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ def get_info(node):
result = {
"preview": render_result
}
else:
raise Exception(f"Unknown node type: {node[1]}")

return result

Expand Down

0 comments on commit 486a9f7

Please sign in to comment.