Skip to content

Commit

Permalink
Test matrix and linter updates (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
psagers committed Nov 8, 2023
1 parent d6b37d7 commit b0fc17c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: |
3.7
3.11
3.8
3.10
3.12
- name: Install hatch
run: pipx install hatch
Expand Down
14 changes: 9 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ features = [
dependencies = [
"black ~= 23.0",
"bumpversion ~= 0.6.0",
"coverage ~= 6.3",
"flake8 ~= 4.0",
"coverage ~= 7.3",
"flake8 ~= 6.1",
"freezegun ~= 1.2.0",
"isort ~= 5.10",
"psycopg2",
Expand Down Expand Up @@ -98,12 +98,16 @@ mode = ["lint"]
# WARNING: When you update the Python versions, make sure to update
# .github/workflows/* as well.
[[tool.hatch.envs.test.matrix]]
python = ["3.7"]
python = ["3.8"]
django = ["3.2"]

[[tool.hatch.envs.test.matrix]]
python = ["3.11"]
django = ["4.1", "4.2"]
python = ["3.10"]
django = ["4.1"]

[[tool.hatch.envs.test.matrix]]
python = ["3.12"]
django = ["4.2"]

[[tool.hatch.envs.test.matrix]]
mode = ["coverage"]
Expand Down
1 change: 0 additions & 1 deletion test/test_project/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from django.core.exceptions import ImproperlyConfigured


try:
import tomllib
except ModuleNotFoundError:
Expand Down

0 comments on commit b0fc17c

Please sign in to comment.