Skip to content

Commit 0bd5a37

Browse files
committed
fix linting
1 parent 4717b48 commit 0bd5a37

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

check.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
poetry run ruff format django_typer
1+
poetry run ruff format
22
poetry run ruff format --line-length 80 django_typer/examples
3-
poetry run ruff check --fix --select I django_typer
4-
poetry run ruff check --fix django_typer
3+
poetry run ruff check --fix --select I
4+
poetry run ruff check --fix
55
poetry run mypy django_typer
66
pyright
77
poetry check

manage.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

7+
68
def main():
79
"""Run administrative tasks."""
8-
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_typer.tests.settings.base')
10+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_typer.tests.settings.base")
911
try:
1012
from django.core.management import execute_from_command_line
1113
except ImportError as exc:
@@ -17,5 +19,5 @@ def main():
1719
execute_from_command_line(sys.argv)
1820

1921

20-
if __name__ == '__main__':
22+
if __name__ == "__main__":
2123
main()

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,14 @@ line-length = 88
196196
exclude = [
197197
"doc",
198198
"dist",
199-
"django_typer/examples"
199+
"django_typer/examples",
200+
"django_typer/tests/apps/examples",
201+
"django_typer/tests/apps/polls",
202+
"django_typer/tests/apps/backup",
203+
"django_typer/tests/apps/typer_examples"
200204
]
201205

202206
[tool.ruff.lint]
203207
exclude = [
204208
"django_typer/tests/**/*"
205-
]
209+
]

0 commit comments

Comments
 (0)