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 d4f3f82 commit 85d6158
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies:
- black
- build
- flake8
- flake8-pyproject
- isort
- pytest
- pytest-cov
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,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"
8 changes: 0 additions & 8 deletions setup.cfg

This file was deleted.

0 comments on commit 85d6158

Please sign in to comment.