From b1ea0add71dc3d906050cefe7601781ece63278d Mon Sep 17 00:00:00 2001 From: David Slusser Date: Mon, 15 Jan 2024 16:48:38 -0800 Subject: [PATCH] black & isort --- django_project/core/urls/urls.py | 6 ++++- django_project/main_app/views/report.py | 6 ++++- pyproject.toml | 29 +++++-------------------- 3 files changed, 15 insertions(+), 26 deletions(-) diff --git a/django_project/core/urls/urls.py b/django_project/core/urls/urls.py index c683f66..c643d95 100644 --- a/django_project/core/urls/urls.py +++ b/django_project/core/urls/urls.py @@ -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 diff --git a/django_project/main_app/views/report.py b/django_project/main_app/views/report.py index 7190b45..78a384f 100644 --- a/django_project/main_app/views/report.py +++ b/django_project/main_app/views/report.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 8e7a610..87004b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]