Skip to content

Commit 486a9f7

Browse files
committed
chore: build & package related chores
1 parent d45b6d3 commit 486a9f7

File tree

6 files changed

+45
-16
lines changed

6 files changed

+45
-16
lines changed

.github/workflows/build-linux.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
python_version: ["3.9", "3.10", "3.11", "3.12"]
21+
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2222
steps:
2323
- name: "Set up Python ${{ matrix.python_version }}"
2424
uses: actions/setup-python@v5
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-latest
6666
strategy:
6767
matrix:
68-
python_version: ["3.9", "3.10", "3.11", "3.12"]
68+
python_version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
6969
steps:
7070
- name: "Set up Python ${{ matrix.python_version }}"
7171
uses: actions/setup-python@v5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ temp/
7979
# pixi environments
8080
.pixi
8181
pixi.lock
82+
output

.pre-commit-config.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,12 @@ default_language_version:
44
repos:
55

66
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
7-
rev: 'v9.19.0'
7+
rev: 'v9.20.0'
88
hooks:
99
- id: commitlint
1010
stages: [commit-msg]
1111
additional_dependencies: ['@commitlint/config-conventional']
1212

13-
#- repo: https://github.com/psf/black
14-
# rev: 24.3.0
15-
# hooks:
16-
# - id: black
17-
1813
- repo: https://github.com/pre-commit/mirrors-mypy
1914
rev: 'v1.13.0' # Use the sha / tag you want to point at
2015
hooks:
@@ -26,9 +21,8 @@ repos:
2621

2722
- repo: https://github.com/astral-sh/ruff-pre-commit
2823
# Ruff version.
29-
rev: v0.8.1
24+
rev: v0.8.3
3025
hooks:
31-
# Run the linter.
3226
- id: ruff
3327
args: [ --fix ]
3428
# Run the formatter.
@@ -55,8 +49,3 @@ repos:
5549
args: ['--fix=no']
5650
- id: no-commit-to-branch
5751
args: [--branch, main]
58-
59-
- repo: https://github.com/Kludex/no-optional
60-
rev: 0.4.0
61-
hooks:
62-
- id: no_optional

ci/rattler-recipes/build.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
context:
2+
version: "1.2.2post1"
3+
4+
package:
5+
name: "build"
6+
version: ${{ version }}
7+
8+
source:
9+
- url:
10+
- https://files.pythonhosted.org/packages/7d/46/aeab111f8e06793e4f0e421fcad593d547fb8313b50990f31681ee2fb1ad/build-1.2.2.post1.tar.gz
11+
12+
sha256: b36993e92ca9375a219c99e606a122ff365a760a2d4bba0caa09bd5278b608b7
13+
14+
build:
15+
# Thanks to `noarch: python` this package works on all platforms
16+
noarch: python
17+
script:
18+
- python -m pip install . -vv
19+
20+
requirements:
21+
host:
22+
- pip
23+
- python 3.10
24+
- flit-core >= 3.8
25+
run:
26+
- packaging >= 19.1
27+
- pyproject_hooks
28+
- tomli >= 1.1.0
29+
30+
about:
31+
homepage: https://github.com/pypa/build
32+
license: MIT
33+
license_file: LICENSE
34+
summary: A simple, correct Python build frontend
35+
description: |
36+
A simple, correct Python build frontend.
37+
repository: https://github.com/pypa/build

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ select = [
426426
"PLW",
427427
"PIE",
428428
]
429-
#select = ["E", "F", "RUF100", "W", "I001"]
429+
430430
ignore = ["E501", "S101", "SIM118", "SIM108", "PLR2004", "PLR0913", "S110", "PIE810", "PLR0911", "PLR0915", "PLR0912", "D", "D401", "PLW0603", "PLR5501", "PLW2901", "S603", "S608", "ISC001", "PLC0206", "RUF022"]
431431
per-file-ignores = { }
432432

src/kiara/interfaces/python_api/kiara_api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ def get_info(node):
741741
result = {
742742
"preview": render_result
743743
}
744+
else:
745+
raise Exception(f"Unknown node type: {node[1]}")
744746

745747
return result
746748

0 commit comments

Comments
 (0)