File tree Expand file tree Collapse file tree 14 files changed +10
-12
lines changed Expand file tree Collapse file tree 14 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1
1
exclude .*
2
2
prune .github
3
3
include Makefile
4
- recursive-include pytest_archon *.txt
5
- include pytest_archon/py.typed
4
+ recursive-include src/ pytest_archon *.txt
5
+ include src/ pytest_archon/py.typed
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ test: $(VENV)/init ## run pytest
11
11
. $(VENV ) /bin/activate && pytest -rA -vvs --log-level INFO
12
12
13
13
cov : $(VENV ) /init # # run pytest
14
- . $(VENV ) /bin/activate && coverage run --source=pytest_archon -- module pytest && coverage report
14
+ . $(VENV ) /bin/activate && coverage run --module pytest && coverage report
15
15
16
16
lint : $(VENV ) /init # # run flake8 to check the code
17
- . $(VENV ) /bin/activate && flake8 pytest_archon tests && mypy -m pytest_archon
17
+ . $(VENV ) /bin/activate && flake8 src/ tests/ && mypy -m pytest_archon
18
18
19
19
install-editable : $(VENV ) /init
20
20
. $(VENV ) /bin/activate && $(PIP ) install -e ' .[dev]'
@@ -23,10 +23,10 @@ install: $(VENV)/init
23
23
. $(VENV ) /bin/activate && $(PIP ) install ' .[dev]'
24
24
25
25
fmt : $(VENV ) /init # # run black to format the code
26
- . $(VENV ) /bin/activate && black pytest_archon tests
26
+ . $(VENV ) /bin/activate && black src/ tests/
27
27
28
28
fmt-check : $(VENV ) /init # # run black to format the code
29
- . $(VENV ) /bin/activate && black --check pytest_archon tests
29
+ . $(VENV ) /bin/activate && black --check src/ tests/
30
30
31
31
clean :
32
32
rm -rf dist/ build/ * .egg-info
Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ dev = [
44
44
45
45
[tool .setuptools_scm ]
46
46
47
- [tool .setuptools .packages .find ]
48
- namespaces = true
49
-
50
47
[tool .setuptools .package-data ]
51
48
"pytest_archon.assets" = [" *.txt" ]
52
49
@@ -58,9 +55,10 @@ profile = "black"
58
55
line_length = 110
59
56
60
57
[tool .pytest .ini_options ]
61
- addopts = [
62
- " --import-mode=importlib" ,
63
- ]
58
+ pythonpath = [ " src" , " tests" ]
64
59
65
60
[project .entry-points .pytest11 ]
66
61
arch = " pytest_archon.plugin"
62
+
63
+ [tool .coverage .paths ]
64
+ source = [" src" ]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments