Add pre-commit.

This commit is contained in:
Hameer Abbasi
2023-08-21 10:23:08 +00:00
committed by Hameer Abbasi
parent e05a503bf4
commit 4c7792ed01
25 changed files with 144 additions and 47 deletions
+7 -8
View File
@@ -16,16 +16,15 @@ jobs:
python-version: 3.10.6
cache: pip
cache-dependency-path: requirements.txt
- name: run-ruff
- name: install-pylint
run: |
python -m pip install --upgrade pip
pip install ruff
ruff .
# - name: run-pylint
# run: |
# python -m pip install --upgrade pip
# pip install pylint
# pylint $(git ls-files '*.py')
pip install pylint
- name: pre-commit
uses: pre-commit-ci/lite-action@v1.0.1
if: always()
with:
msg: apply code formatting and linting auto-fixes
- name: test-startup
run: |
export COMMANDLINE_ARGS="--debug --test"