Skip to content

Commit

Permalink
black & isort
Browse files Browse the repository at this point in the history
  • Loading branch information
David Slusser committed Jan 16, 2024
1 parent 6fc56be commit b1ea0ad
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 26 deletions.
6 changes: 5 additions & 1 deletion django_project/core/urls/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
from django.contrib import admin
from django.contrib.auth.views import logout_then_login
from django.urls import include, path
from drf_spectacular.views import SpectacularAPIView, SpectacularRedocView, SpectacularSwaggerView
from drf_spectacular.views import (
SpectacularAPIView,
SpectacularRedocView,
SpectacularSwaggerView,
)

urlpatterns = [
# Django provided URLs
Expand Down
6 changes: 5 additions & 1 deletion django_project/main_app/views/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
# from django.conf import settings
from django.shortcuts import render
from django.views.generic import View
from handyhelpers.views.report import AnnualProgressView, AnnualStatView, AnnualTrendView
from handyhelpers.views.report import (
AnnualProgressView,
AnnualStatView,
AnnualTrendView,
)

# from handyhelpers.views.report import get_colors

Expand Down
29 changes: 5 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,32 +72,13 @@ omit = [
]


[tool.flake8]
ignore = "E203,E266,H106,H904,E133"
max-line-length = 120
max-complexity = 25
hang-closing = true
exclude = "django_project/manage.py, django_project/*/scripts"
[tool.isort]
profile = "black"


[tool.pylint.format]
max-line-length = "120"

[tool.pylint.MASTER]
ignore-paths = ["django_project/manage.py", "django_project/tests", "django_project/storemgr/migrations", "django_project/*/scripts", "django_project/*/local_test"]
exit-zero = true

[tool.pylint.'MESSAGES CONTROL']
disable = "R0903,R0913,R0901,W0613,W0718,C0114,C0115,C0103,R1725"


[tool.pytest.ini_options]
addopts = "-s -v -x --strict-markers -m 'not extra' --cov=django_project"
testpaths = ["django_project"]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
[tool.mypy]
exclude = ['venv/*']
ignore_missing_imports = true


[tool.ruff]
Expand Down

0 comments on commit b1ea0ad

Please sign in to comment.