-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a pylint github workflow to prevent regressions in pylint clean f…
…iles
- Loading branch information
1 parent
7ec4248
commit 8fb17b9
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Pylint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.12"] | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint __init__.py dialects\__init__.py dialects\v09\__init__.py dialects\v09\python2\__init__.py \ | ||
dialects\v10\__init__.py dialects\v10\python2\__init__.py dialects\v20\__init__.py \ | ||
examples\__init__.py generator\__init__.py tests\test_mavxml.py tools\__init__.py \ | ||
mavftp.py mavftp_op.py examples\mavftp_example.py examples\status_msg.py tests\test_mavftp.py \ | ||
tests\test_mavxml.py | ||
# $(git ls-files '*.py') |