-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- switch from poetry to uv - switch from isort/black to ruff - remove code using yaml from tests - pin ci runner versions - test on python 3.12, no longer 3.8 which is EOL - update pyright, devcontainer cli
- Loading branch information
1 parent
a3730bc
commit a9cee00
Showing
27 changed files
with
1,557 additions
and
1,605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,12 @@ on: | |
types: [published] | ||
jobs: | ||
build-n-publish: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-python@v2 | ||
- run: pip install poetry | ||
- run: poetry version ${GITHUB_REF:10} | ||
- run: poetry build | ||
- run: pip install uv | ||
- run: uv build | ||
- run: pip install twine==4.0.1 | ||
- run: twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} | ||
- uses: EndBug/[email protected] | ||
|
@@ -19,4 +18,4 @@ jobs: | |
author_email: 41898282+github-actions[bot]@users.noreply.github.com | ||
add: pyproject.toml | ||
branch: main | ||
message: Published new version | ||
message: Published new version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,3 +133,4 @@ typeshed | |
|
||
trash | ||
**/_build | ||
.aider* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,29 +13,19 @@ repos: | |
rev: 0.5.0 | ||
hooks: | ||
- id: nbstripout | ||
- repo: https://github.com/ambv/black | ||
rev: 22.3.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.9 | ||
hooks: | ||
- id: black | ||
files: '(src|tests).*py' | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["-m", "3", "--tc"] | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: ruff-format | ||
args: [--line-length=88] | ||
- repo: local | ||
hooks: | ||
- id: pyright | ||
name: pyright | ||
entry: poetry run pyright | ||
entry: uv run pyright | ||
language: node | ||
pass_filenames: false | ||
types: [python] | ||
additional_dependencies: ["[email protected]"] | ||
# - repo: local | ||
# hooks: | ||
# - id: smoketest | ||
# name: smoketest | ||
# entry: poetry run pytest -k test_when_nb_present_then_collected | ||
# language: system | ||
# pass_filenames: false | ||
additional_dependencies: ["[email protected]"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.