Skip to content

Commit

Permalink
Move flake8 config into pyproject.toml and require flake8-pyproject p…
Browse files Browse the repository at this point in the history
…ackage
  • Loading branch information
mattpitkin committed Jul 4, 2024
1 parent a0857ad commit 0e18294
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .flake8

This file was deleted.

21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ astropy = [
dev = [
"black",
"flake8",
"Flake8-pyproject",
"pre-commit",
"wheel",
"coverage",
Expand Down Expand Up @@ -100,3 +101,23 @@ exclude = '''
)/
)
'''

[tool.flake8]
max-line-length = 120
max-complexity = 45
ignore = [
"E203",
"W503", # line break before binary operator; conflicts with black
"E722", # bare except ok
"E731", # lambda expressions ok
"E741", # undescriptive variable ok
]
exclude = [
".git",
".tox",
"__pycache__",
"build",
"dist",
"docs",
".libstempo",
]

0 comments on commit 0e18294

Please sign in to comment.