Skip to content

Commit

Permalink
adjust pylint configs for new pylint version 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaweinmann committed Jun 4, 2024
1 parent c7b7b4f commit b452d96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions linting-config-examples/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ disable=
missing-module-docstring, ; we use the GRASS GIS header
R, ; refactoring + design recommendations

[BASIC]
# for global variable setting
good-names=keep_data,download_dir,gisdbase,tgtgisrc,tmploc,srcgisrc

[BROAD_TRY_CLAUSE]
max-try-statements=4 # Default: 1
Expand All @@ -35,5 +38,9 @@ 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 button of the file
disable=E0606

[VARIABLES]
additional-builtins=_ # Default: ()
7 changes: 7 additions & 0 deletions linting-config-examples/.pylintrc_allowed_to_fail
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ recursive=yes # Default: False

# score=no # Default: True

[BASIC]
# for global variable setting
good-names=keep_data,download_dir,gisdbase,tgtgisrc,tmploc,srcgisrc

[BROAD_TRY_CLAUSE]
max-try-statements=4 # Default: 1
Expand All @@ -23,6 +26,10 @@ 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 button of the file
disable=E0606

[VARIABLES]
additional-builtins=_ # Default: ()

Expand Down

0 comments on commit b452d96

Please sign in to comment.