File tree Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Expand file tree Collapse file tree 3 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 13
13
dest : justfile
14
14
- source : .cz.toml
15
15
dest : .cz.toml
16
+ - source : pytest.ini
17
+ dest : pytest.ini
16
18
- source : ruff.toml
17
19
dest : ruff.toml
18
20
- source : LICENSE.md
Original file line number Diff line number Diff line change @@ -10,21 +10,7 @@ install-deps:
10
10
11
11
# Run the Python tests
12
12
test-python :
13
- # - A short traceback (tb) mode to make it easier to view
14
- # - Use the `src/` package (importlib)
15
- # - Use code coverage on the `src/` package
16
- # - If tests fail, do not generate coverage report
17
- # - Create the coverage report in XML (for badge), terminal, and HTML
18
- # - Trigger failure if below 90% code coverage
19
- uv run pytest \
20
- - -tb=short \
21
- - -import-mode=importlib \
22
- - -cov=src \
23
- - -no-cov-on-fail \
24
- - -cov-report=term \
25
- - -cov-report=xml \
26
- - -cov-report=html \
27
- - -cov-fail-under=90
13
+ uv run pytest
28
14
# Make the badge from the coverage report
29
15
uv run genbadge coverage \
30
16
- i coverage.xml \
Original file line number Diff line number Diff line change
1
+ [pytest]
2
+ # - A short traceback (tb) mode to make it easier to view
3
+ # - Use the `src/` package (importlib)
4
+ # - Use code coverage on the `src/` package
5
+ # - If tests fail, do not generate coverage report
6
+ # - Create the coverage report in XML (for badge), terminal, and HTML
7
+ # - Trigger failure if below 90% code coverage
8
+ addopts = --tb =short --import-mode =importlib --cov =src --no-cov-on-fail --cov-report =term --cov-report =xml --cov-report =html --cov-fail-under =90
You can’t perform that action at this time.
0 commit comments