Hotfix: Return whole parsed result #17
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
name: Python Linter | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 mypy | |
- name: Run Flake8 | |
id: flake8 | |
continue-on-error: true | |
run: | | |
flake8 . \ | |
--exclude=venv,.git,__pycache__ \ | |
--ignore=E226,E302,E41,E501,W291,W293,F401,F403,W503,E203 \ | |
--max-complexity=10 | |
- name: Run Mypy | |
id: mypy | |
continue-on-error: true | |
run: | | |
mypy . \ | |
--exclude 'venv|.git' \ | |
--ignore-missing-imports \ | |
--allow-untyped-defs \ | |
--allow-incomplete-defs \ | |
--allow-untyped-decorators \ | |
--allow-subclassing-any \ | |
--allow-untyped-calls \ | |
--no-error-summary \ | |
--hide-error-context \ | |
--no-error-summary \ | |
--no-pretty \ | |
--explicit-package-bases \ | |
--namespace-packages | |
- name: Check for Failures | |
if: ${{ steps.flake8.outcome == 'failure' || steps.mypy.outcome == 'failure' }} | |
run: | | |
echo "::error::Linting checks failed! Please check the logs above for Flake8 and Mypy errors" | |
exit 1 |