-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f230d1e
commit 6cfb112
Showing
3 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
exclude = [ | ||
".eggs", | ||
".git", | ||
".venv", | ||
"venv"] | ||
|
||
line-length = 88 | ||
indent-width = 4 | ||
|
||
target-version = "py39" | ||
|
||
[lint] | ||
select = ["E4", "E7", "E9", "F", "B", "D417"] | ||
# extend-select = ["D417"] deactivated by default in case of pep257 codestyle. | ||
# see also: https://docs.astral.sh/ruff/rules/undocumented-param/ | ||
ignore = ["B008", "D107", "D203", "D212", "D213", "D402", "D413", "D415", "D416", "E722", "E731", "F403", "F405", "F841", "B904"] | ||
fixable = ["ALL"] | ||
unfixable = [] | ||
# ignore list in docstring according to numpy codestyles for Dxxx. | ||
# http://www.pydocstyle.org/en/5.0.1/error_codes.html#default-conventions | ||
# B904: Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling | ||
|
||
[lint.pydocstyle] | ||
convention = "pep257" | ||
|
||
[format] | ||
quote-style = "double" | ||
indent-style = "space" | ||
skip-magic-trailing-comma = false | ||
line-ending = "auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[pycodestyle] | ||
count = False | ||
ignore = E226,E302,E71, W293, W291, E731, E502, E722, W605 | ||
max-line-length = 160 | ||
statistics = True | ||
|
||
# E502: the backslash is redundant between brackets | ||
# E731: do not assign a lambda expression, use a def | ||
# E722 do not use bare 'except' | ||
# W605 invalid escape sequence \xxx for LaTeX commands |