forked from ansible/ansible-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flake8
108 lines (101 loc) · 3.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[flake8]
# Don't even try to analyze these:
extend-exclude =
# No need to traverse egg info dir
*.egg-info,
# GitHub configs
.github,
# Cache files of MyPy
.mypy_cache,
# Cache files of pytest
.pytest_cache,
# Temp dir of pytest-testmon
.tmontmp,
# Occasional virtualenv dir
.venv
# VS Code
.vscode,
# Temporary build dir
build,
# This contains sdists and wheels of ansible-lint that we don't want to check
dist,
# Occasional virtualenv dir
env,
# Metadata of `pip wheel` cmd is autogenerated
pip-wheel-metadata,
# Let's not overcomplicate the code:
max-complexity = 10
# Accessibility/large fonts and PEP8 friendly:
#max-line-length = 79
# Accessibility/large fonts and PEP8 unfriendly:
max-line-length = 100
# The only allowed ignores are related to black and isort
# https://black.readthedocs.io/en/stable/the_black_code_style.html#line-length
# "H" are generated by hacking plugin, which is not black compatible
extend-ignore =
E203,
E501,
H,
# Allow certain violations in certain files:
per-file-ignores =
# FIXME: D100 Missing docstring in public module
# FIXME: D101 Missing docstring in public class
# FIXME: D102 Missing docstring in public method
# FIXME: drop these once they're made simpler
# Ref: https://github.com/ansible-community/ansible-lint/issues/744
src/ansiblelint/cli.py: D101 D102
src/ansiblelint/formatters/__init__.py: D101 D102
src/ansiblelint/rules/*.py: D100 D101 D102
src/ansiblelint/rules/__init__.py: D100 D101 D102
# FIXME: drop these once they're fixed
# Ref: https://github.com/ansible-community/ansible-lint/issues/725
test/__init__.py: D102
test/conftest.py: D100
test/rules/EMatcherRule.py: D100 D101 D102
test/rules/UnsetVariableMatcherRule.py: D100 D101 D102
test/TestAnsibleLintRule.py: D100
test/TestBaseFormatter.py: D100
test/TestBecomeUserWithoutBecome.py: D100 D101 D102
test/TestCliRolePaths.py: D100 D101 D102
test/TestCommandLineInvocationSameAsConfig.py: D100
test/TestCommandHasChangesCheck.py: D100 D101 D102
test/TestComparisonToLiteralBool.py: D100 D101 D102
test/TestDependenciesInMeta.py: D100
test/TestDeprecatedModule.py: D100 D101 D102
test/TestEnvVarsInCommand.py: D100 D101 D102
test/TestFormatter.py: D100 D101 D102
test/TestImportIncludeRole.py: D100
test/TestImportWithMalformed.py: D100
test/TestIncludeMissFileWithRole.py: D100
test/TestLineTooLong.py: D100 D101 D102
test/TestLintRule.py: D100 D101 D102
test/TestNestedJinjaRule.py: D100
test/TestMatchError.py: D101
test/TestMetaChangeFromDefault.py: D100 D101 D102
test/TestMetaMainHasInfo.py: D100 D101 D102
test/TestMetaVideoLinks.py: D100 D101 D102
test/TestNoFormattingInWhenRule.py: D100 D101 D102
test/TestOctalPermissions.py: D100 D101 D102
test/TestPackageIsNotLatest.py: D100 D101 D102
test/TestRoleRelativePath.py: D100 D101 D102
test/TestRuleProperties.py: D100
test/TestRulesCollection.py: D100
test/TestRunner.py: D100
test/TestShellWithoutPipefail.py: D100 D101 D102
test/TestSkipImportPlaybook.py: D100
test/TestSkipInsideYaml.py: D100
test/TestSkipPlaybookItems.py: D100
test/TestTaskHasName.py: D100 D101 D102
test/TestTaskIncludes.py: D100
test/TestTaskNoLocalAction.py: D100 D101 D102
test/TestUseHandlerRatherThanWhenChanged.py: D100 D101 D102
test/TestUsingBareVariablesIsDeprecated.py: D100 D101 D102
test/TestWithSkipTagId.py: D100 D101 D102
# 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