-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
tox.ini
27 lines (25 loc) · 767 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[tox]
envlist = py312-check
[gh-actions]
python = 3.12: py312-check
[testenv:py312-check]
description = Run static checkers.
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install --without build
commands =
# make pyside
poetry run generate_pyside_files
# Check import ordering
poetry run isort src tests -c
# Check formatting
poetry run black src tests --check --diff
# Check type hinting
poetry run mypy src tests
# Lint source code
# GitHub action runs on Ubuntu where certain PySide modules fail to load
poetry run pylint src tests {posargs} --ignored-modules=PySide6
# Run tests
poetry run pytest tests {posargs}
poetry run python -m unittest discover --start-directory tests