-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnitpick-38.toml
More file actions
69 lines (57 loc) · 1.86 KB
/
nitpick-38.toml
File metadata and controls
69 lines (57 loc) · 1.86 KB
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
["pyproject.toml".tool.black]
line-length = 100
target-version = ['py38']
verbose = true
["pyproject.toml".tool.isort]
profile = 'black'
line_length = 100
py_version = 38
skip = [".gitignore", ".dockerignore"]
known_first_party = ["experimental"]
known_third_party = ["telegraf"]
["setup.cfg".flake8]
max-line-length = 100
# Check cyclomatic complexity (4 considered upper limit of "good" complexity)
max-complexity = 7
# Allow only %s formatting for loggers
enable-extensions = "G"
# G200 Logging statement uses exception in arguments
# W503, W504 line break after binary operator
# Allow only f-string formatting in any formatted string
# E203: Allow whitespace before :
# Remark: black behavior: with smth() : -> with smth():. BUT a[1 + 1 :2+1] -> a[1 + 1 : 2 + 1]
# W503: line break before binary operator - conflict with black
ignore = "E402,G002,G200,W503,W504,Q000"
extend-ignore = "SFS301,E203,W503"
[nitpick.files.present]
".pre-commit-config.yaml" = "Create the file with the contents below, then run 'pre-commit install'"
[".pre-commit-config.yaml".default_language_version]
python = "python3.8.10"
[[".pre-commit-config.yaml".repos]]
repo = "https://github.com/psf/black"
rev = "22.3.0"
[[".pre-commit-config.yaml".repos.hooks]]
id = "black"
args = ["--config=./pyproject.toml"]
[[".pre-commit-config.yaml".repos]]
repo = "https://github.com/pycqa/isort"
rev = "5.12.0"
[[".pre-commit-config.yaml".repos.hooks]]
id = "isort"
[[".pre-commit-config.yaml".repos]]
repo = "https://github.com/pycqa/flake8"
rev = "3.9.2"
[[".pre-commit-config.yaml".repos.hooks]]
id = "flake8"
additional_dependencies = [
"flake8-quotes==3.2.0",
"flake8-print==4.0.0",
"flake8-logging-format==0.6.0",
"flake8-sfs==0.0.3",
"deal",
]
[[".pre-commit-config.yaml".repos]]
repo = "https://github.com/seddonym/import-linter"
rev = "v1.8.0"
[[".pre-commit-config.yaml".repos.hooks]]
id = "import-linter"