-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
48 lines (36 loc) · 1.49 KB
/
.pylintrc
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
# For documentation about this config, see
# https://pylint.readthedocs.io/en/stable/user_guide/configuration/all-options.html (as of writing, version 2.17.4)
[MAIN]
jobs=0 # Default: 1
load-plugins=
pylint.extensions.broad_try_clause
recursive=yes # Default: False
# reports=yes # Default: False
# score=no # Default: True
# To disable more rules, see output of pylint. E.g.
# [...] C0301: Line too long (89/80) (line-too-long)
# can be suppressed with either disable=line-too-long or disable=C
# It is also possible to ignore a specific line by adding
# # pylint: disable=broad-exception-caught
# above the line causing the lint error
disable=
W, ; all Warnings are allowed to fail
import-error, ; To suppress e.g "Unable to import 'grass.script"
missing-module-docstring, ; we use the GRASS GIS header
R, ; refactoring + design recommendations
consider-using-enumerate, ; to supress consider using enumerate
line-too-long, ; >80
[BASIC]
# for global variable setting
good-names=keep_data,download_dir,gisdbase,tgtgisrc,tmploc,srcgisrc
[BROAD_TRY_CLAUSE]
max-try-statements=4 # Default: 1
[FORMAT]
max-line-length=80 # Default: 100
max-module-lines=800 # Default: 1000
ignore-long-lines=.*COPYRIGHT:.* |# . description:.*|\s*(# )?.*http.:\/\/\S+?|# %%*
[MESSAGES CONTROL]
# E0606 (possibly-used-before-assignment): to set options and flags at the bottom of the file without pre-initialization
disable=E0606
[VARIABLES]
additional-builtins=_ # Default: ()