forked from andreoliwa/nitpick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpylint.toml
76 lines (63 loc) · 2.71 KB
/
pylint.toml
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
[nitpick.meta]
name = "Pylint"
url = "https://github.com/PyCQA/pylint"
["pyproject.toml".tool.poetry.dependencies]
pylint = {version = "*", optional = true}
["pyproject.toml".tool.poetry.extras]
lint = ["pylint"]
# pylint needs to be installed in the same venv as the project, to be more useful
# https://github.com/pre-commit/mirrors-pylint#using-pylint-with-pre-commit
[[".pre-commit-config.yaml".repos]]
repo = "local"
[[".pre-commit-config.yaml".repos.hooks]]
id = "pylint"
name = "pylint"
language = "system"
exclude = "tests/"
types = ["python"]
[".pylintrc".MASTER]
# Use multiple processes to speed up Pylint.
jobs = 1
# https://github.com/samuelcolvin/pydantic/issues/1961#issuecomment-759522422
extension-pkg-whitelist = "pydantic"
[".pylintrc".REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs (visual studio) and html.
# You can also give a reporter class, eg mypackage.mymodule.MyReporterClass.
output-format = "colorized"
[".pylintrc"."MESSAGES CONTROL"]
# TODO: fix: deal with character separated INI options in https://github.com/andreoliwa/nitpick/issues/271
# The "nitpick.files" section doesn't work out of the box for .pylintrc:
# [nitpick.files.".pylintrc"]
# comma_separated_values = ["MESSAGES CONTROL.disable"]
# This syntax will be deprecated anyway, so I won't make it work now
# Configurations for the black formatter
#disable = "bad-continuation,bad-whitespace,fixme,cyclic-import,line-too-long"
[".pylintrc".BASIC]
# List of builtins function names that should not be used, separated by a comma
bad-functions = "map,filter"
# Good variable names which should always be accepted, separated by a comma
good-names = "i,j,k,e,ex,Run,_,id,rv,c"
[".pylintrc".FORMAT]
# Maximum number of characters on a single line.
max-line-length = 120
# Maximum number of lines in a module
max-module-lines = 1000
# TODO: fix: deal with empty options (strings with spaces and quotes); maybe it's a ConfigParser/ConfigUpdater thing
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 tab).
#indent-string = " "
# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren = 4
[".pylintrc".SIMILARITIES]
# Minimum lines number of a similarity.
min-similarity-lines = 4
# Ignore comments when computing similarities.
ignore-comments = "yes"
# Ignore docstrings when computing similarities.
ignore-docstrings = "yes"
# Ignore imports when computing similarities.
ignore-imports = "no"
[".pylintrc".VARIABLES]
# A regular expression matching the name of dummy variables (i.e. expectedly not used).
dummy-variables-rgx = "_$|dummy"
[".codeclimate.yml".plugins.pylint] # https://docs.codeclimate.com/docs/pylint Already checked by pre-commit
enabled = false