Skip to content

Commit 9b23da9

Browse files
committed
fix file path references after move to src directory
1 parent ac853e2 commit 9b23da9

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
source =
3-
coverage_threshold/
3+
src/coverage_threshold/
44

55
[report]
66
exclude_lines =

mypy.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[mypy]
22
strict = True
3+
mypy_path = $MYPY_CONFIG_FILE_DIR/src

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ line_coverage_min = 0
3939
file_line_coverage_min = 100
4040
file_branch_coverage_min = 100
4141

42-
[tool.coverage-threshold.modules."coverage_threshold/cli/"]
42+
[tool.coverage-threshold.modules."src/coverage_threshold/cli/"]
4343
file_line_coverage_min = 0
4444
file_branch_coverage_min = 0
4545

46-
[tool.coverage-threshold.modules."coverage_threshold/__main__.py"]
46+
[tool.coverage-threshold.modules."src/coverage_threshold/__main__.py"]
4747
file_line_coverage_min = 0
4848
file_branch_coverage_min = 0

scripts/coverage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
cd "$( dirname "${BASH_SOURCE[0]}" )"
33
cd ..
44

5-
coverage run --branch -m pytest tests/ coverage_threshold/ --doctest-modules
5+
coverage run --branch -m pytest tests/ src/coverage_threshold/ --doctest-modules
66
coverage report -m
77
coverage json
88
coverage-threshold

scripts/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
cd "$( dirname "${BASH_SOURCE[0]}" )"
33
cd ..
44

5-
pytest tests/ coverage_threshold/ --doctest-modules
5+
pytest tests/ src/coverage-threshold/ --doctest-modules

scripts/type-check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ cd "$( dirname "${BASH_SOURCE[0]}" )"
33
cd ..
44

55
echo "type checking source"
6-
mypy coverage_threshold/
6+
mypy src/coverage_threshold/
77
echo "type checking tests"
88
mypy tests/

0 commit comments

Comments
 (0)