diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-04 22:38:41 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-04 22:45:00 +0100 |
commit | f43efe5a65db0dc4bac68fe79cd6c463c74ef0a2 (patch) | |
tree | b9daf84294ddbd260b71c63388f4c36b81ef2aac /.github/workflows/ci.yml | |
parent | 8da3884afce7c03368ae2ed67d1e40fced9225a4 (diff) | |
download | weechat-f43efe5a65db0dc4bac68fe79cd6c463c74ef0a2.zip |
core: add script check_scripts.sh
This script is now used in CI to check all shell scripts (*.sh) and Python
scripts (*.py) that are in git repository.
Tools used:
- shell scripts: shellcheck
- Python scripts: flake8 + pylint + bandit
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8884af879..45a766ef1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: - pull_request env: - WEECHAT_DEPENDENCIES: devscripts equivs python3-pip autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-3.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php8.0-dev libphp8.0-embed libargon2-dev libsodium-dev pylint python3-bandit asciidoctor ruby-pygments.rb + WEECHAT_DEPENDENCIES: devscripts equivs python3-pip autopoint cmake ninja-build lcov pkg-config libncursesw5-dev gem2deb libperl-dev python3-dev libaspell-dev liblua5.3-dev tcl8.6-dev guile-3.0-dev libv8-dev libcurl4-gnutls-dev libgcrypt20-dev libgnutls28-dev libzstd-dev zlib1g-dev curl libcpputest-dev php8.0-dev libphp8.0-embed libargon2-dev libsodium-dev pylint python3-bandit asciidoctor ruby-pygments.rb shellcheck jobs: @@ -42,15 +42,8 @@ jobs: - name: Check gettext files run: msgcheck po/*.po - - name: Check Python scripts - run: | - pylint --additional-builtins=_ doc/docgen.py - pylint doc/python_stub.py - pylint tests/scripts/python/testapigen.py tests/scripts/python/testapi.py tests/scripts/python/unparse.py - pylint tools/check_curl_symbols.py - bandit doc/docgen.py doc/python_stub.py - bandit tests/scripts/python/testapigen.py tests/scripts/python/testapi.py tests/scripts/python/unparse.py - bandit tools/check_curl_symbols.py + - name: Check shell and Python scripts + run: ./tools/check_scripts.sh - name: Check Python stub file run: ./doc/python_stub.py | diff src/plugins/python/weechat.pyi - |