Skip to content

Commit fe7f066

Browse files
Dev: add pylint to check ill-formated string literals
This pull request added pylint with a minimal configuration, enabling only string checks. See #1601.
1 parent 4972fad commit fe7f066

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/workflows/crmsh-ci.yml

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
echo "Please run ./update-data-manifest.sh && git add ./data-manifest in your local environment and push the code again."
2828
exit 1
2929
}
30+
sudo apt-get update && sudo apt-get install pylint
31+
pylint --rcfile pylint.toml crmsh
3032
3133
unit_test:
3234
runs-on: ubuntu-24.04

pylint.toml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tool.pylint.main]
2+
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
3+
# number of processors available to use, and will cap the count on Windows to
4+
# avoid hangs.
5+
jobs = 0
6+
7+
[tool.pylint."messages control"]
8+
# Disable the message, report, category or checker with the given id(s). You can
9+
# either give multiple identifiers separated by comma (,) or put this option
10+
# multiple times (only on the command line, not in the configuration file where
11+
# it should appear only once). You can also use "--disable=all" to disable
12+
# everything first and then re-enable specific checks. For example, if you want
13+
# to run only the similarities checker, you can use "--disable=all
14+
# --enable=similarities". If you want to run only the classes checker, but have
15+
# no Warning level messages displayed, use "--disable=all --enable=classes
16+
# --disable=W".
17+
disable = ["all"]
18+
19+
# Enable the message, report, category or checker with the given id(s). You can
20+
# either give multiple identifier separated by comma (,) or put this option
21+
# multiple time (only on the command line, not in the configuration file where it
22+
# should appear only once). See also the "--disable" option for examples.
23+
enable = ["string"]

0 commit comments

Comments
 (0)