Last active
February 20, 2023 17:40
-
-
Save arquolo/bf2f98f80eab0aa3c8f6401db916b7ec to your computer and use it in GitHub Desktop.
Nitpick config
This file contains hidden or 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
["pyproject.toml".tool.yapf] | |
based_on_style = "facebook" | |
align_closing_bracket_with_visual_indent = true | |
allow_multiline_dictionary_keys = true | |
coalesce_brackets = true | |
column_limit = 79 | |
dedent_closing_brackets = false | |
spaces_around_power_operator = true | |
split_arguments_when_comma_terminated = true | |
split_before_arithmetic_operator = true | |
split_before_bitwise_operator = true | |
split_before_dict_set_generator = false | |
split_before_dot = true | |
split_before_expression_after_opening_paren = true | |
split_before_logical_operator = true | |
["pyproject.toml".tool.mypy] | |
sqlite_cache = true | |
check_untyped_defs = true | |
ignore_missing_imports = true | |
no_implicit_optional = true | |
show_error_codes = true | |
warn_unused_ignores = true | |
plugins = [ | |
"numpy.typing.mypy_plugin", | |
] | |
["pyproject.toml".tool.ruff] | |
select = [ | |
"A", "B", "C4", "C9", "D", "E", "F", "N", "PT", "Q0", "RET", "S", "SIM", "UP", "W", | |
"BLE", "COM", "ICN", "INP", "PL", "RSE", "RUF", | |
# "FBT", "SLF", "TCH", | |
"TRY", | |
] | |
ignore = [ | |
"A003", "B008", "B905", "D1", "D2", "D4", "N812", "S1", "S3", | |
"COM812", "COM818", "PLR0913", "PLR2004", "PT011", "RET504", "TRY003", "SIM105", | |
] | |
exclude = [".eggs", ".git", "__pycache__", "build", "dist"] | |
line-length = 79 | |
target-version = "py39" | |
["pyproject.toml".tool.ruff.flake8-quotes] | |
inline-quotes = "single" | |
["pyproject.toml".tool.ruff.mccabe] | |
max-complexity = 10 | |
["pyproject.toml".tool.flake8] | |
require-plugins = [ | |
"flake8-alphabetize", | |
"flake8-pie", | |
"flake8-pyi", | |
"flake8-simplify", | |
] | |
select = [ | |
# pyflakes,pycodestyle: n/a in ruff | |
"E", "F703", "F721", "F723", "F831", "W", | |
# flake8-alphabetize | |
"AZ400", | |
# flake8-pie | |
"PIE787", "PIE789", "PIE793", "PIE795", "PIE798", "PIE799", "PIE805", "PIE806", | |
# flake8-pyi: Y{002-006,009-026,028-052} | |
"Y0", | |
# flake8-simplify | |
"SIM113", "SIM116", "SIM9", | |
# wemake | |
"WPS", | |
] | |
ignore = [ | |
"W503", | |
# wemake: Naming | |
"WPS1", | |
# wemake: Complexity | |
"WPS2", | |
# wemake: Consistency | |
"WPS300", "WPS301", "WPS303", "WPS304", "WPS305", "WPS306", "WPS309", "WPS314", "WPS316", "WPS317", "WPS318", "WPS319", "WPS326", "WPS330", "WPS331", "WPS332", "WPS335", "WPS336", "WPS337", "WPS338", "WPS339", "WPS347", "WPS349", "WPS352", "WPS356", "WPS358", "WPS359", "WPS361", "WPS362", | |
# wemake: Best practices | |
"WPS407", "WPS410", "WPS412", "WPS414", "WPS420", "WPS421", "WPS424", "WPS425", "WPS428", "WPS429", "WPS430", "WPS431", "WPS432", "WPS433", "WPS434", "WPS435", "WPS436", "WPS437", "WPS440", "WPS441", "WPS442", "WPS444", "WPS450", "WPS451", "WPS457", "WPS458", "WPS459", "WPS460", "WPS461", "WPS465", | |
# wemake: Refactoring | |
"WPS501", "WPS503", "WPS509", "WPS526", "WPS527", "WPS529", | |
# wemake: OOP | |
"WPS600", "WPS601", "WPS602", "WPS603", "WPS604", "WPS609", | |
] | |
exclude = [".eggs", ".git", "__pycache__", "build", "dist"] | |
max-complexity = 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment