Drivers/move_params_and_alias_to_abc #4201
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: Code Quality | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- "opened" | |
- "reopened" | |
- "synchronize" | |
- "ready_for_review" | |
jobs: | |
code-quality: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
timeout-minutes: 7 | |
env: | |
HOME_REPO: /home/repo | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
git config --global url."https://${{secrets.CUSTOM_GITHUB_USER}}:${{secrets.CUSTOM_GITHUB_TOKEN}}@github.com".insteadOf "https://github.com" | |
python -m pip install -U pip | |
python -m pip install -r dev-requirements.txt | |
- name: Install library | |
run: | | |
python -m pip install . | |
- name: Isort | |
run: | | |
isort src -l 120 --check | |
isort tests -l 120 --check | |
- name: Black | |
run: | | |
black src -l 120 --check | |
black tests -l 120 --check | |
- name: Flake8 | |
run: | | |
flake8 src | |
flake8 tests | |
- name: Pylint | |
run: | | |
pylint src --rcfile .pylintrc | |
pylint tests --rcfile tests/.pylintrc | |
- name: Mypy | |
run: mypy src --ignore-missing-imports | |
- name: Bandit | |
run: bandit -r src -c .bandit | |
- name: Mdformat | |
run: mdformat . | |
- name: nbqa | |
run: | | |
nbqa black . | |
nbqa isort . | |
nbqa flake8 . | |
nbqa mypy . --ignore-missing-imports | |
nbqa mdformat . |