Skip to content

Commit 82c958b

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 a311619 commit 82c958b

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
@@ -22,3 +22,11 @@ skip-magic-trailing-comma = true
2222
# Speed up pytest-cov on Python 3.12+ by enabling sys.monitoring if possible.
2323
core = "sysmon"
2424
disable_warnings = ["no-sysmon"]
25+
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+
]

0 commit comments

Comments
 (0)