|
|
@ -1,9 +1,7 @@ |
|
|
|
[tool.black] |
|
|
|
target-version = ["py37"] |
|
|
|
line-length = 120 |
|
|
|
py36 = true |
|
|
|
skip-string-normalization = true |
|
|
|
|
|
|
|
include = '\.pyi?$' |
|
|
|
exclude = ''' |
|
|
|
/( |
|
|
|
\.eggs |
|
|
@ -24,12 +22,33 @@ exclude = ''' |
|
|
|
) |
|
|
|
''' |
|
|
|
|
|
|
|
[tool.isort] |
|
|
|
default_section = 'THIRDPARTY' |
|
|
|
force_grid_wrap = 0 |
|
|
|
include_trailing_comma = true |
|
|
|
known_first_party = 'coincurve' |
|
|
|
line_length = 120 |
|
|
|
multi_line_output = 3 |
|
|
|
skip_glob = 'setup.py' |
|
|
|
use_parentheses = true |
|
|
|
[tool.ruff] |
|
|
|
target-version = "py37" |
|
|
|
line-length = 120 |
|
|
|
select = ["A", "B", "C", "E", "F", "I", "M", "N", "Q", "RUF", "S", "T", "U", "W", "YTT"] |
|
|
|
ignore = [ |
|
|
|
# Allow non-abstract empty methods in abstract base classes |
|
|
|
"B027", |
|
|
|
# Ignore McCabe complexity |
|
|
|
"C901", |
|
|
|
# Allow boolean positional values in function calls, like `dict.get(... True)` |
|
|
|
"FBT003", |
|
|
|
# Ignore checks for possible passwords |
|
|
|
"S105", "S106", "S107", |
|
|
|
] |
|
|
|
unfixable = [ |
|
|
|
# Don't touch unused imports |
|
|
|
"F401", |
|
|
|
] |
|
|
|
|
|
|
|
[tool.ruff.isort] |
|
|
|
known-first-party = ["coincurve"] |
|
|
|
|
|
|
|
[tool.ruff.flake8-quotes] |
|
|
|
inline-quotes = "single" |
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores] |
|
|
|
"setup.py" = ["B", "C", "I", "N", "U"] |
|
|
|
# Tests can use assertions |
|
|
|
"tests/*" = ["S101"] |
|
|
|
"tests/**/*" = ["S101"] |
|
|
|