Skip to content

Commit b30baca

Browse files
authored
Move .coveragerc contents to pyproject.toml (#1281)
Consolidate tool settings into pyproject.toml. One of the PRs that will resolve #1268.
1 parent c7038b0 commit b30baca

3 files changed

Lines changed: 9 additions & 23 deletions

File tree

check/pytest-and-incremental-coverage

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ fi
7070
check/pytest . \
7171
--actually-quiet \
7272
--cov \
73-
--cov-report=annotate \
74-
--cov-config=dev_tools/conf/.coveragerc
73+
--cov-report=annotate
7574
pytest_result=$?
7675

7776
# Analyze coverage files.

dev_tools/conf/.coveragerc

Lines changed: 0 additions & 21 deletions
This file was deleted.

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ skip-magic-trailing-comma = true
2323
core = "sysmon"
2424
disable_warnings = ["no-sysmon"]
2525

26+
# Omit files outside the current working directory.
27+
# Note: this means coverage must be run from the openfermion repo root.
28+
# Failure to do so will result in false positives.
29+
omit = [
30+
"./profiling/performance_benchmarks.py",
31+
"./dev_tools/*",
32+
]
33+
2634
[tool.mypy]
2735
implicit_optional = true
2836

0 commit comments

Comments
 (0)