Skip to content

Commit

Permalink
Lint everything
Browse files Browse the repository at this point in the history
  • Loading branch information
fretchen committed Jan 7, 2024
1 parent 68c42b0 commit 8a9a81e
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 32 deletions.
5 changes: 5 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[MASTER]
ignore=migrations
extension-pkg-whitelist=pydantic
[MESSAGES CONTROL]
disable=R0801
20 changes: 20 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[mypy]
check_untyped_defs = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
ignore_errors = False
ignore_missing_imports = True
implicit_reexport = False
strict_optional = True
strict_equality = True
no_implicit_optional = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unreachable = True
warn_no_return = True
plugins =
mypy_django_plugin.main

[mypy.plugins.django-stubs]
django_settings_module = "tests.test_settings"
118 changes: 89 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ python-decouple = "^3.8"
pytz = "^2023.3.post1"
django-csp = "^3.7"
whitenoise = "^6.6.0"
pylint-django = "^2.5.5"


[tool.poetry.group.dev.dependencies]
pylint = "^3.0.3"
black = "^23.12.1"
mypy = "^1.8.0"
mypy = "^1.7.0"
pylint-django = "^2.5.5"
django-stubs = {extras = ["compatible-mypy"], version = "^4.2.7"}

[build-system]
requires = ["poetry-core"]
Expand Down
1 change: 0 additions & 1 deletion src/qlued/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from django.conf import settings
from django.db import models
from django.contrib.auth.models import AbstractUser
from django.core.exceptions import ValidationError


Expand Down

0 comments on commit 8a9a81e

Please sign in to comment.