Skip to content

Commit cda450c

Browse files
authored
Deprecate Distrax where possible and move UV (#35)
1 parent 376e59a commit cda450c

61 files changed

Lines changed: 5888 additions & 2688 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.ipynb linguist-vendored

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- precommit
2222
strategy:
2323
matrix:
24-
python-version: [3.11]
24+
python-version: [ 3.12 ]
2525
steps:
2626
- uses: actions/checkout@v3
2727
- name: Set up Python ${{ matrix.python-version }}
@@ -41,7 +41,7 @@ jobs:
4141
- precommit
4242
strategy:
4343
matrix:
44-
python-version: [3.11]
44+
python-version: [ 3.12 ]
4545
steps:
4646
- uses: actions/checkout@v3
4747
- name: Set up Python ${{ matrix.python-version }}
@@ -61,7 +61,7 @@ jobs:
6161
- precommit
6262
strategy:
6363
matrix:
64-
python-version: [3.11]
64+
python-version: [ 3.12, 3.13 ]
6565
steps:
6666
- uses: actions/checkout@v3
6767
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- precommit
2020
strategy:
2121
matrix:
22-
python-version: [3.11]
22+
python-version: [ 3.12, 3.13 ]
2323
steps:
2424
- uses: actions/checkout@v3
2525
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.9]
13+
python-version: [3.12, 3.13]
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Set up Python ${{ matrix.python-version }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,5 @@ cython_debug/
155155
.vscode/
156156

157157
poetry.lock
158+
159+
.DS_Store

.gitlint

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[general]
2+
ignore=body-is-missing
3+
4+
[title-min-length]
5+
min-length=10
6+
7+
[title-must-not-contain-word]
8+
words=wip,todo

.pre-commit-config.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,12 @@ repos:
99
- id: check-toml
1010
- id: check-yaml
1111
- id: debug-statements
12+
- id: end-of-file-fixer
1213
- id: requirements-txt-fixer
1314
- id: trailing-whitespace
1415

15-
- repo: https://github.com/pycqa/bandit
16-
rev: 1.7.1
17-
hooks:
18-
- id: bandit
19-
language: python
20-
language_version: python3
21-
types: [python]
22-
args: ["-c", "pyproject.toml"]
23-
additional_dependencies: ["toml"]
24-
files: "(surjectors|examples)"
25-
2616
- repo: https://github.com/pre-commit/mirrors-mypy
27-
rev: v0.910-1
17+
rev: v1.15.0
2818
hooks:
2919
- id: mypy
3020
args: ["--ignore-missing-imports"]
@@ -35,4 +25,4 @@ repos:
3525
hooks:
3626
- id: ruff
3727
args: [ --fix ]
38-
- id: ruff-format
28+
- id: ruff-format

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12.10

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
build:
44
os: ubuntu-22.04
55
tools:
6-
python: "3.11"
6+
python: "3.12"
77

88
sphinx:
99
builder: html

Makefile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
PKG_VERSION=`hatch version`
1+
.PHONY: tests, lints, docs, format
22

3-
tag:
4-
git tag -a v${PKG_VERSION} -m v${PKG_VERSION}
5-
git push --tag
3+
tests:
4+
uv run pytest
5+
6+
lints:
7+
uv run ruff check surjectors examples
8+
9+
format:
10+
uv run ruff check --fix surjectors examples
11+
uv run ruff format surjectors examples
12+
13+
docs:
14+
cd docs && make html

0 commit comments

Comments
 (0)