-
Notifications
You must be signed in to change notification settings - Fork 23
/
tox.ini
103 lines (93 loc) · 1.76 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[tox]
envlist =
black
blacken
isort
isort_format
ruff
pypi-description
towncrier
py{311,310,39,38}
skip_missing_interpreters = true
[testenv]
commands = {env:COMMAND:python} -m unittest
deps =
-r{toxinidir}/requirements-test.txt
passenv =
COMMAND
PYTEST_*
[testenv:ruff]
commands =
{envpython} -m ruff check giturlparse {posargs}
{envpython} -minterrogate -c pyproject.toml giturlparse
deps =
interrogate
ruff
skip_install = true
[testenv:isort]
commands =
{envpython} -m isort -c --df giturlparse
deps = isort>5.9,<6
skip_install = true
[testenv:isort_format]
commands =
{envpython} -m isort giturlparse
deps = {[testenv:isort]deps}
skip_install = true
[testenv:black]
commands =
{envpython} -m black --check --diff .
deps = black
skip_install = true
[testenv:blacken]
commands =
{envpython} -m black .
deps = {[testenv:black]deps}
skip_install = true
[testenv:towncrier]
commands =
{envpython} -m invoke towncrier-check
deps =
invoke
skip_install = true
[testenv:pypi-description]
commands =
{envpython} -m invoke clean
{envpython} -m check_manifest
{envpython} -m pep517.build .
{envpython} -m twine check dist/*
deps =
invoke
check-manifest
pep517
twine
skip_install = true
[testenv:release]
commands =
{envpython} -m invoke clean
{envpython} -m check_manifest
{envpython} -m pep517.build .
{envpython} -m twine upload {posargs} dist/*
deps = {[testenv:pypi-description]deps}
passenv =
TWINE_*
skip_install = true
[check-manifest]
ignore =
.*
*.ini
*.toml
*.json
*.txt
*.yml
*.yaml
.tx/**
changes/**
docs/**
cms_helper.py
aldryn_config.py
tasks.py
tests/**
*.mo
ignore-bad-ideas =
*.mo