Skip to content

Commit

Permalink
Migrate flake8 config into pyproject.toml
Browse files Browse the repository at this point in the history
Yeah, we should switch to ruff... don't judge me!
  • Loading branch information
ctrueden committed Aug 12, 2024
1 parent 896e26d commit 36eb0fc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies:
- build
- black
- flake8
- flake8-pyproject
- isort
- pre-commit
- pyflakes
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,13 @@ include-package-data = false
where = ["src"]
namespaces = false

# Thanks to Flake8-pyproject, we can configure flake8 here!
[tool.flake8]
exclude = ["bin", "build", "docs", "dist"]
extend-ignore = ["E203"]
# See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
max-line-length = 88
min_python_version = "3.8"

[tool.isort]
profile = "black"
6 changes: 0 additions & 6 deletions setup.cfg

This file was deleted.

0 comments on commit 36eb0fc

Please sign in to comment.