Skip to content

Add pre-commit hooks file for com2ann tool #43

Add pre-commit hooks file for com2ann tool

Add pre-commit hooks file for com2ann tool #43

Workflow file for this run

name: lint_python
on: [pull_request, push]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install --upgrade pip wheel
- run: pip install -r test-requirements.txt
- run: bandit --recursive --skip B101 . # B101 is assert statements
- run: black --check . || true
- run: codespell --ignore-words-list="fo"
- run: flake8 . --count --max-complexity=12 --max-line-length=89 --show-source --statistics
- run: isort --check-only --profile black . || true
- run: |
pip install --editable .
mkdir --parents --verbose .mypy_cache
- run: mypy --ignore-missing-imports --install-types --non-interactive .
- run: pytest .
- run: shopt -s globstar && pyupgrade --py38-plus **/*.py
- run: safety check