Skip to content

Commit

Permalink
feat: configure tools
Browse files Browse the repository at this point in the history
- isort
- black
- flake8
- check-manifest
  • Loading branch information
gforcada committed Nov 2, 2023
1 parent 821cd31 commit 4f1a5fb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[flake8]
doctests = 1
ignore =
# black takes care of line length
E501,
# black takes care of where to break lines
W503,
# black takes care of spaces within slicing (list[:])
E203,
# black takes care of spaces after commas
E231,
# as one has to use self.XX it should not be a problem
A003,
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,16 @@ test = ["pytest"]

[project.entry-points."flake8.extension"]
A00 = "flake8_builtins:BuiltinsChecker"

[tool.isort]
profile = "plone"

[tool.black]
target-version = ["py38"]
skip-string-normalization = true

[tool.check-manifest]
ignore = [
".vscode/*",
"venv/*",
]

0 comments on commit 4f1a5fb

Please sign in to comment.