forked from hyprland-community/pyprland
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (43 loc) · 1.03 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[tox]
envlist = {py311, py312}
[testenv:doc]
deps =
poetry
pdoc
commands =
poetry install -v --only main
pdoc --docformat google ./pyprland
[testenv:wiki]
allowlist_externals =./scripts/test_*
commands =
./scripts/test_wiki_coverage.sh
[testenv]
allowlist_externals =./scripts/title
deps =
poetry
commands =
poetry install -v
# Lint
./scripts/title BLACK
poetry run black pyprland
./scripts/title PYLINT
poetry run pylint pyprland
./scripts/title VULTURE
poetry run vulture --ignore-names 'event_*,run_*,from*,instance' pyprland scripts/v_whitelist.py
# Tests
./scripts/title PYTEST
poetry run coverage run -m pytest
# Types
./scripts/title MYPY
poetry run pip install types-aiofiles
poetry run mypy --check-untyped-defs pyprland
# Coverage
./scripts/title COVERAGE
poetry run coverage report
[testenv:standalone]
deps =
poetry
pyinstaller
commands =
poetry install -v --only main
pyinstaller -n pypr -Fy --collect-all pyprland.plugins pyprland/command.py