Skip to content

Commit

Permalink
Use py312 as tox target
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamandar committed Nov 21, 2024
1 parent a27ec67 commit 9d8dcff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .gitlab/ci/lint.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ lint311:
needs: []
allow_failure: true
script:
- tox -e py311-lint
- tox -e py312-lint

invalidcode311:
stage: lint
image: "build-and-lint"
needs: []
script:
- tox -e py311-invalidcode
- tox -e py312-invalidcode

mypy:
stage: lint
image: "build-and-lint"
needs: []
script:
- tox -e py311-mypy
- tox -e py312-mypy

i18n-keys:
stage: lint
Expand Down
18 changes: 9 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[tox]
envlist = py311-{lint,invalidcode},py311-black-{run,check}
envlist = py312-{lint,invalidcode},py312-black-{run,check}

[testenv]
skip_install=True
deps =
py311-{lint,invalidcode}: flake8
py311-black-{run,check}: black
py311-mypy: mypy >= 0.900
py312-{lint,invalidcode}: flake8
py312-black-{run,check}: black
py312-mypy: mypy >= 0.900
commands =
py311-lint: flake8 src doc maintenance tests --ignore E402,E501,E203,W503,E741 --exclude src/tests,src/vendor
py311-invalidcode: flake8 src bin maintenance --exclude src/tests,src/vendor --select F,E722,W605
py311-black-check: black --check --diff bin src doc maintenance tests
py311-black-run: black bin src doc maintenance tests
py311-mypy: mypy --ignore-missing-import --install-types --non-interactive --follow-imports silent src/ --exclude (acme_tiny|migrations|tests)
py312-lint: flake8 src doc maintenance tests --ignore E402,E501,E203,W503,E741 --exclude src/tests,src/vendor
py312-invalidcode: flake8 src bin maintenance --exclude src/tests,src/vendor --select F,E722,W605
py312-black-check: black --check --diff bin src doc maintenance tests
py312-black-run: black bin src doc maintenance tests
py312-mypy: mypy --ignore-missing-import --install-types --non-interactive --follow-imports silent src/ --exclude (acme_tiny|migrations|tests)

0 comments on commit 9d8dcff

Please sign in to comment.