Skip to content

Commit 0bf4235

Browse files
authored
Merge pull request #1743 from dbcli/RW/migrate-coveragerc-to-pyproject-toml
Migrate `.coveragerc` to `pyproject.toml` section
2 parents 826d4b1 + 92580c1 commit 0bf4235

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.coveragerc

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

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include LICENSE.txt *.md *.rst screenshots/*
2-
include tasks.py .coveragerc tox.ini
32
recursive-include test *.cnf
43
recursive-include test *.feature
54
recursive-include test *.py

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,6 @@ commands = [['ruff', 'check'],
148148

149149
[tool.pytest]
150150
addopts = ['--ignore=mycli/packages/paramiko_stub/__init__.py']
151+
152+
[tool.coverage.run]
153+
source = ['mycli']

test/features/environment.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ def before_all(context):
4444
# os.environ['MYSQL_TEST_LOGIN_FILE'] = login_path_file
4545

4646
context.package_root = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
47-
48-
os.environ["COVERAGE_PROCESS_START"] = os.path.join(context.package_root, ".coveragerc")
49-
5047
context.exit_sent = False
5148

5249
vi = "_".join([str(x) for x in sys.version_info[:3]])

0 commit comments

Comments
 (0)