Skip to content

Create conda_on_demand.yml #451

Create conda_on_demand.yml

Create conda_on_demand.yml #451

name: lint_python_with_pipx
on: [pull_request, push, workflow_dispatch]
jobs:
lint_python_with_pipx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pipx --version
- run: pip install flake8 flake8-2020 flake8-bugbear flake8-comprehensions
- run: pipx run bandit --recursive --skip B101 . || true # B101 is assert statements
- run: pipx run black --check . || true
- run: pipx run codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock"
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88
--show-source --statistics
- run: pipx run isort --check-only --profile black . || true
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
- run: mkdir --parents --verbose .mypy_cache
- run: pipx run mypy --ignore-missing-imports --install-types --non-interactive . || true
- run: pipx run pytest . || true
- run: pipx run pytest --doctest-modules . || true
- run: shopt -s globstar && pipx run pyupgrade --py36-plus **/*.py || true
- run: pipx run safety check