Skip to content

Commit

Permalink
update to remove flake8 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
asears committed Jan 7, 2025
1 parent cf2406a commit ed1e2bd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -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 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ test_consumer*
# pytest-cov code coverage
.coverage
.coverage.**

.codegpt
23 changes: 4 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,17 @@ 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"]

[tool.setuptools.dynamic]
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"

Expand All @@ -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}"]

0 comments on commit ed1e2bd

Please sign in to comment.