Skip to content

Commit

Permalink
Add "pyproject.toml"
Browse files Browse the repository at this point in the history
Used to configure various tools. Currently contains the configuration
for `black`, `flake8` and `isort`, which will subsequently be used to
clean up the code a bit before committing new disaggregation features.
Note that in order for `flake8` to pick up configuration from
"pyproject.toml", `flake8-pyproject` has to be installed alongside
`flake8`.
  • Loading branch information
gnn committed Dec 14, 2022
1 parent f9a092f commit c8efc32
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[tool.black]
exclude = '''
/(
\.git
| build
| dist
)/
'''
include = '\.pyi?$'
line-length = 79
target-version = ["py38", "py39", "py310", "py311"]

[tool.flake8]
max-line-length = 79
extend-ignore = ["E203", "E741", "W503"]
exclude = ["build", "dist"]

[tool.isort]
combine_as_imports = true
from_first = true
line_length = 79
profile = "black"

0 comments on commit c8efc32

Please sign in to comment.