Skip to content

Commit

Permalink
even more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Aug 30, 2023
1 parent 977b56c commit 1d0a51f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ca/django_ca/tests/api/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from django_ca.api import utils


@pytest.mark.django_db(transaction=True)
@pytest.mark.django_db
def test_doctests() -> None:
"""Test doctests in the module."""
failures, _tests = doctest.testmod(utils)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ strict = true
show_error_codes = true
mypy_path = "ca/:stubs/:docs/source/"
exclude = [
"dist/", # mypy complains about an extracted wheel
"migrations/.*\\.py$",
]
plugins = [
Expand All @@ -208,7 +209,6 @@ module = [
# psycopg and psycopg_c are not installed in isolated mypy envs (tox, ...)
"psycopg",
"psycopg_c",
"pytest.*",
"pytest_cov.*",
"requests.packages.urllib3.response",
# semantic-version==2.10.0 does not have typehints. See also:
Expand Down
1 change: 1 addition & 0 deletions requirements/requirements-mypy.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-r requirements-dev-common.txt
-r requirements-test.txt
# mypy==1.5.0 breaks django-stubs==4.2.3:
# https://github.com/typeddjango/django-stubs/issues/1648
mypy==1.4.1
Expand Down

0 comments on commit 1d0a51f

Please sign in to comment.