2022-07-11 22:23:38 +02:00
|
|
|
[flake8]
|
2022-07-13 22:54:16 +02:00
|
|
|
# Don't lint non-Python files
|
2022-07-11 22:23:38 +02:00
|
|
|
exclude =
|
|
|
|
.git,
|
|
|
|
.github,
|
|
|
|
.mypy_cache,
|
|
|
|
.pytest_cache,
|
|
|
|
__pycache__,
|
|
|
|
alembic,
|
|
|
|
htmlcov,
|
|
|
|
venv
|
2022-07-13 22:54:16 +02:00
|
|
|
# Disable rules that we don't care about (or conflict with others)
|
|
|
|
extend-ignore =
|
|
|
|
# Missing docstring in public module
|
|
|
|
D100, D104,
|
|
|
|
# Missing docstring in magic method
|
|
|
|
D105,
|
|
|
|
# Missing docstring in __init__
|
|
|
|
D107,
|
|
|
|
# First line of docstrings should end with a period
|
|
|
|
D400,
|
|
|
|
# First line of docstrings should be in imperative mood
|
|
|
|
D401,
|
|
|
|
# Whitespace before ":"
|
|
|
|
E203,
|
2022-07-24 17:09:42 +02:00
|
|
|
# Standard pseudo-random generators are not suitable for security/cryptographic purposes.
|
|
|
|
S311,
|
2022-07-13 22:54:16 +02:00
|
|
|
# Don't require docstrings when overriding a method,
|
|
|
|
# the base method should have a docstring but the rest not
|
2022-07-15 23:06:40 +02:00
|
|
|
ignore-decorators=overrides
|
2022-07-11 22:23:38 +02:00
|
|
|
max-line-length = 120
|
2022-07-13 22:54:16 +02:00
|
|
|
# Disable some rules for entire files
|
2022-07-11 22:23:38 +02:00
|
|
|
per-file-ignores =
|
2022-07-19 23:35:41 +02:00
|
|
|
# DALL000: Missing __all__, main isn't supposed to be imported
|
2022-07-11 22:23:38 +02:00
|
|
|
main.py: DALL000,
|
2022-07-19 23:35:41 +02:00
|
|
|
# DALL000: Missing __all__, Cogs aren't modules
|
2022-07-13 22:54:16 +02:00
|
|
|
./didier/cogs/*: DALL000,
|
2022-07-19 23:35:41 +02:00
|
|
|
# DALL000: Missing __all__, tests aren't supposed to be imported
|
|
|
|
# S101: Use of assert, this is the point of tests
|
|
|
|
./tests/*: DALL000 S101,
|
|
|
|
# D103: Missing docstring in public function
|
2022-07-13 22:54:16 +02:00
|
|
|
# All of the colours methods are just oneliners to create a colour,
|
|
|
|
# there's no point adding docstrings (function names are enough)
|
2022-07-19 23:35:41 +02:00
|
|
|
./didier/utils/discord/colours.py: D103,
|