-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
53 lines (47 loc) · 1.19 KB
/
Copy pathtox.ini
File metadata and controls
53 lines (47 loc) · 1.19 KB
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
[tox]
envlist = py313, docs, lint
requires = tox>=4.6
# Note: 'integration' env is intentionally excluded from the default envlist.
# Run manually with: tox -e integration (requires GITHUB_TOKEN env var)
[testenv]
description = run tests
basepython = python3.13
package = wheel
extras = dev
usedevelop = true
commands = pytest --cov=src --cov-report=xml {posargs}
[testenv:docs]
description = build docs
extras = dev
commands = sphinx-build -b html docs/source docs/build
[testenv:lint]
description = run linters
skip_install = true
deps = pre-commit
commands = python -m pre_commit run --color=always {posargs:--all}
[testenv:integration]
description = run integration tests against real GitHub API (requires GITHUB_TOKEN)
basepython = python3.13
package = wheel
extras = dev
usedevelop = true
passenv = GITHUB_TOKEN
commands = pytest tests/ -m integration -v {posargs}
[coverage:run]
source = src
omit =
*/tests/*
*/test_*
*/__pycache__/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
class .*\bProtocol\):
@(abc\.)?abstractmethod