Skip to content

Commit

Permalink
chore: run tests on python 3.9 and newer
Browse files Browse the repository at this point in the history
- removed all older tests version
- removed sort
- use ruff instead of black
  • Loading branch information
sijis committed Oct 28, 2024
1 parent aa62a62 commit ff642f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 3 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,codestyle,dist-check,sort,security
envlist = py39,py310,311,312,codestyle,dist-check,security
skip_missing_interpreters = True

[testenv]
Expand All @@ -9,9 +9,9 @@ commands = pytest -v tests/
recreate = true

[testenv:codestyle]
deps = black
deps = ruff
commands =
black --check src/ tests/
ruff check src/ tests/

[testenv:dist-check]
deps =
Expand All @@ -21,11 +21,6 @@ commands =
python -m build --outdir {distdir}
twine check {distdir}/*

[testenv:sort]
deps =
isort
commands = isort --check-only --profile=black src/ tests/

[testenv:security]
deps =
bandit
Expand Down

0 comments on commit ff642f2

Please sign in to comment.