Skip to content

Commit

Permalink
Merge pull request #23 from mundialis/update-linting-versions
Browse files Browse the repository at this point in the history
Update linting.yml: update versions
  • Loading branch information
anikaweinmann authored Jun 4, 2024
2 parents a52dbe3 + c96e96c commit e27f300
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
black-version:
required: false
type: string
default: '23.3.0'
default: '24.4.2'
flake8-version:
required: false
type: string
default: '6.0.0'
default: '7.0.0'
pylint-version:
required: false
type: string
default: '2.17.4'
default: '3.2.2'
mdformat-version:
required: false
type: string
Expand Down
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 bottom of the file without pre-initialization
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 bottom of the file without pre-initialization
disable=E0606

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

Expand Down

0 comments on commit e27f300

Please sign in to comment.