diff --git a/.github/workflows/crmsh-ci.yml b/.github/workflows/crmsh-ci.yml index 6d19dde61..0bfe67ce8 100644 --- a/.github/workflows/crmsh-ci.yml +++ b/.github/workflows/crmsh-ci.yml @@ -27,6 +27,8 @@ jobs: echo "Please run ./update-data-manifest.sh && git add ./data-manifest in your local environment and push the code again." exit 1 } + sudo apt-get update && sudo apt-get install pylint + pylint --rcfile pylint.toml crmsh unit_test: runs-on: ubuntu-24.04 diff --git a/pylint.toml b/pylint.toml new file mode 100644 index 000000000..a25d26e3a --- /dev/null +++ b/pylint.toml @@ -0,0 +1,23 @@ +[tool.pylint.main] +# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the +# number of processors available to use, and will cap the count on Windows to +# avoid hangs. +jobs = 0 + +[tool.pylint."messages control"] +# Disable the message, report, category or checker with the given id(s). You can +# either give multiple identifiers separated by comma (,) or put this option +# multiple times (only on the command line, not in the configuration file where +# it should appear only once). You can also use "--disable=all" to disable +# everything first and then re-enable specific checks. For example, if you want +# to run only the similarities checker, you can use "--disable=all +# --enable=similarities". If you want to run only the classes checker, but have +# no Warning level messages displayed, use "--disable=all --enable=classes +# --disable=W". +disable = ["all"] + +# Enable the message, report, category or checker with the given id(s). You can +# either give multiple identifier separated by comma (,) or put this option +# multiple time (only on the command line, not in the configuration file where it +# should appear only once). See also the "--disable" option for examples. +enable = ["string"]