- name: Run tests
run: tox -e mypy ${{ matrix.pytest-args }}
- run-pep8:
- name: pep8-${{ matrix.python-version }}
+ run-lint:
+ name: lint-${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
# run this job using this matrix, excluding some combinations below.
pip list
- name: Run tests
- run: tox -e pep8
+ run: tox -e lint
# Arm emulation is quite slow (~20min) so for now just run it when merging to main
# run-test-arm64:
- name: Run tests
run: tox -e mypy ${{ matrix.pytest-args }}
- run-pep8:
- name: pep8-${{ matrix.python-version }}
+ run-lint:
+ name: lint-${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
# run this job using this matrix, excluding some combinations below.
pip list
- name: Run tests
- run: tox -e pep8
+ run: tox -e lint
run-pep484:
name: pep484-${{ matrix.python-version }}
- pydocstyle
- pygments
-- repo: https://github.com/ariebovenberg/slotscheck
- rev: v0.11.0
- hooks:
- - id: slotscheck
- exclude: "^(?!lib/sqlalchemy)"
- additional_dependencies:
- - typing_extensions
- - mypy
- - greenlet
- entry: env PYTHONPATH=lib slotscheck -v
+
+
+
pytest -m mypy {posargs}
# thanks to https://julien.danjou.info/the-best-flake8-extensions/
-[testenv:pep8]
+[testenv:lint]
basepython = python3
deps=
flake8
pydocstyle
pygments
black==21.12b0
+ mypy
+ slotscheck>=0.12,<0.13
commands =
flake8 ./lib/ ./test/ ./examples/ setup.py doc/build/conf.py {posargs}
black --check ./lib/ ./test/ ./examples/ setup.py doc/build/conf.py
+ slotscheck -m sqlalchemy
# command run in the github action when cext are active.