update to remove flake8 settings

This commit is contained in:
asears 2025-01-06 19:29:56 -05:00
parent cf2406a90c
commit ed1e2bd85c
3 changed files with 18 additions and 19 deletions

12
.flake8 Normal file
View File

@ -0,0 +1,12 @@
[flake8]
exclude =
"venv/*",
".venv/*",
"tox/*",
"docs/*",
"testproject/*",
"js_client/*",
".eggs/*",
extend-ignore = E123, E128, E266, E402, W503, E731, W601, B036
max-line-length = 120

2
.gitignore vendored
View File

@ -33,3 +33,5 @@ test_consumer*
# pytest-cov code coverage
.coverage
.coverage.**
.codegpt

View File

@ -50,6 +50,10 @@ issues = "https://github.com/django/daphne/issues"
[project.scripts]
daphne = "daphne.cli:CommandLineInterface.entrypoint"
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["daphne"]
@ -57,18 +61,6 @@ packages = ["daphne"]
version = { attr = "daphne.__version__" }
readme = { file = "README.rst", content-type = "text/x-rst" }
[tool.flake8]
exclude = [
"venv/*",
"tox/*",
"docs/*",
"testproject/*",
"js_client/*",
".eggs/*",
]
extend-ignore = ["E123", "E128", "E266", "E402", "W503", "E731", "W601", "B036"]
max-line-length = 120
[tool.isort]
profile = "black"
@ -87,10 +79,3 @@ skip_covered = "true"
[tool.coverage.html]
directory = "reports/coverage_html_report"
[tool.tox]
envlist = ["py39", "py310", "py311", "py312", "py313"]
[tool.tox.testenv]
extras = ["tests"]
commands = ["pytest -v {posargs}"]