diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index 7dd4dba..0000000 --- a/.isort.cfg +++ /dev/null @@ -1,14 +0,0 @@ -[settings] -sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER -line_length=100 -default_section=THIRDPARTY -known_first_party= - django_cleanup -known_third_party= - easy_thumbnails - sorl - pytest -known_django=django -multi_line_output=4 -lines_after_imports=2 -combine_as_imports=true diff --git a/pyproject.toml b/pyproject.toml index 3bb25b4..57ab455 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,9 +25,29 @@ classifiers = [ requires-python = ">=3.8" dynamic = ["version"] -[tool.setuptools.dynamic] -version = {attr = "django_cleanup.__version__"} - [project.urls] Homepage = "https://github.com/un1t/django-cleanup" Changelog = "https://github.com/un1t/django-cleanup/blob/master/CHANGELOG.md" + +[tool.setuptools.dynamic] +version = {attr = "django_cleanup.__version__"} + +[tool.isort] +sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] +line_length = 100 +default_section = "THIRDPARTY" +known_first_party = ["django_cleanup"] +known_third_party = ["easy_thumbnails", "sorl", "pytest"] +known_django = "django" +multi_line_output = 4 +lines_after_imports = 2 +combine_as_imports = true + +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = "test.settings" +pythonpath = [".", "src"] +addopts = ["-v", "--cov-report=term-missing", "--cov=django_cleanup"] +markers = [ + "cleanup_selected_config: marks test as using the CleanupSelectedConfig app config", + "django_storage: change django storage backends" +] diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 3129a41..0000000 --- a/pytest.ini +++ /dev/null @@ -1,7 +0,0 @@ -[pytest] -DJANGO_SETTINGS_MODULE = test.settings -pythonpath = . src -addopts = -v --cov-report=term-missing --cov=django_cleanup -markers = - cleanup_selected_config: marks test as using the CleanupSelectedConfig app config - django_storage: change django storage backends