forked from cherrypy/cheroot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flake8
63 lines (56 loc) · 1.57 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
[flake8]
# Don't even try to analyze these:
exclude =
# No need to traverse egg files
*.egg,
# Circle CI configs
.circleci,
# No need to traverse egg info dir
*.egg-info,
# No need to traverse eggs directory
.eggs,
# No need to traverse our git directory
.git,
# GitHub configs
.github,
# Cache files of MyPy
.mypy_cache,
# Cache files of pytest
.pytest_cache,
# Temp dir of pytest-testmon
.tmontmp,
# Countless third-party libs in venvs
.tox,
# VS Code
.vscode,
# There's no value in checking cache directories
__pycache__,
# This contains builds of cheroot that we don't want to check
dist,
# Metadata of `pip wheel` cmd is autogenerated
pip-wheel-metadata,
# Completely and unconditionally ignore the following errors:
ignore =
# W503 ignored for https://github.com/PyCQA/pycodestyle/issues/498
W503
# Let's not overcomplicate the code:
# 29 is to facilitate the currently present maximum
max-complexity = 29
# max-complexity = 10 # TODO: use this once possible
# Accessibility/large fonts and PEP8 friendly:
max-line-length = 79
# Allow certain violations in certain files:
per-file-ignores =
# cheroot/makefile.py:125:5: C901 'If 125' is too complex (57)
cheroot/makefile.py: C901
# There are multiple `assert`s (S101)
# and subprocesses (import – S404; call – S603) in tests:
cheroot/test/test_*.py: S101, S404, S603
# flake8-pytest-style
# PT001:
pytest-fixture-no-parentheses = true
# PT006:
pytest-parametrize-names-type = tuple
# PT007:
pytest-parametrize-values-type = tuple
pytest-parametrize-values-row-type = tuple