Skip to content

Commit 682cf77

Browse files
committed
tox fixes
This commit was sponsored by Devin Prater, rockstar, Derek Veit, and my other patrons. If you want to join them, you can support my work at https://glyph.im/patrons/.
1 parent 1bda3df commit 682cf77

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import pathlib
4343
import subprocess
4444
_project_root = pathlib.Path(__file__).parent.parent
45-
_source_root = _project_root
45+
_source_root = _project_root / "src"
4646

4747
_git_reference = subprocess.run(
4848
["git", "rev-parse", "--abbrev-ref", "HEAD"],

tox.ini

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tox]
22
envlist = lint,{pypy3,py38,py310,py311}-mypy,coverage-clean,{pypy3,py38,py310,py311}-{extras,noextras},coverage-report,docs
33

4+
isolated_build = true
45

56
[testenv]
67
deps =
@@ -15,8 +16,8 @@ deps =
1516
pytest
1617

1718
commands =
18-
{extras,noextras}: coverage run --parallel --source automat -m pytest -s -rfEsx automat/_test
19-
mypy: mypy {posargs:automat}
19+
{extras,noextras}: coverage run --parallel --source src -m pytest -s -rfEsx src/automat/_test
20+
mypy: mypy {posargs:src/automat}
2021

2122
depends =
2223
coverage-clean
@@ -43,7 +44,7 @@ commands = pytest --benchmark-only benchmark/
4344

4445
[testenv:lint]
4546
deps = black
46-
commands = black --check automat
47+
commands = black --check src
4748

4849
[testenv:pypy3-benchmark]
4950
deps = {[testenv:benchmark]deps}

0 commit comments

Comments
 (0)