This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
forked from DisnakeDev/disnake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
73 lines (67 loc) · 2.01 KB
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
; SPDX-License-Identifier: MIT
[flake8]
max-line-length = 100
statistics = true
count = true
noqa-require-code = true
pytest-mark-no-parentheses = true
exclude =
.git
__pycache__
.nox
.eggs
*.egg
*.egg-info
.vscode
.venv
venv
.mypy_cache
.pytest_cache
build
# For error codes, see this https://flake8.pycqa.org/en/latest/user/error-codes.html
ignore =
# whitespace before ':', linebreak before operator. Not compatible with black
E203,W503,
# ignore linebreak after `/` operator
W504,
# line too long. Acceptable at the moment since these are mostly comments
E501,
# assigning lambdas to variables
E731,
# ignore try-except-pass. Bare excepts are caught with B001 and E722
S110,
# ignore multiple `##` starting a comment
E266,
# ignore "unused import" errors, already handled by pyright
F401
per-file-ignores =
# unused imports, star imports
*/__init__.py: F401, F403
# ignore whitespacing on flags
disnake/audit_logs.py:E241
# ignore whitespacing on flags
disnake/enums.py:E221,E241
# ignore subprocess usage
disnake/player.py:S404,S603
# ignore whitespacing after `:`
disnake/ext/commands/params.py:E241
# upstream bug: https://github.com/PyCQA/bandit/issues/926
disnake/backoff.py:S311
disnake/colour.py:S311
# pytest uses assert for testing
tests/**: S101
# ignore pytest issues outside of tests directory
disnake/**: PT
docs/**: PT
examples/**: PT
# B008: runtime function calls are how Params work,
# S311: examples don't misuse random generation
# S105: possible hardcoded passwords TODO
examples/**:B008,S311,S105
test_bot/**:B008
# usage of assert and interface binding, allowable for the third party lib at use
# also have to reignore whatever is from the last check that pops up here
examples/basic_voice.py:S101,S104
# ignore ambiguous variable names
# Todo: remove this check
examples/views/tic_tac_toe.py:E741