Skip to content

Commit 182ca17

Browse files
feat: update pyproject.toml (#16430)
1 parent 0d52f45 commit 182ca17

File tree

2 files changed

+27
-30
lines changed

2 files changed

+27
-30
lines changed

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,30 @@ module = [
147147
"lightning_app.utilities.tree",
148148
]
149149
ignore_errors = "True"
150+
151+
[tool.coverage.report]
152+
exclude_lines = [
153+
"pragma: no cover",
154+
"warnings",
155+
"pass",
156+
"rank_zero_warn",
157+
"raise NotImplementedError",
158+
]
159+
160+
[tool.pytest.ini_options]
161+
norecursedirs = [
162+
".git",
163+
".github",
164+
"dist",
165+
"build",
166+
"docs",
167+
]
168+
addopts = "--strict-markers --doctest-modules --color=yes --disable-pytest-warnings --ignore=legacy/checkpoints"
169+
markers = [
170+
"cloud:Run the cloud tests for example",
171+
]
172+
filterwarnings = [
173+
"error::FutureWarning",
174+
]
175+
xfail_strict = true
176+
junit_duration_report = "call"

setup.cfg

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,6 @@ name = pytorch-lightning
1717
author = Lightning-AI et al.
1818
url = https://github.com/Lightning-AI/lightning
1919

20-
[tool:pytest]
21-
norecursedirs =
22-
.git
23-
.github
24-
dist
25-
build
26-
docs
27-
addopts =
28-
--strict-markers
29-
--doctest-modules
30-
--color=yes
31-
--disable-pytest-warnings
32-
--ignore=legacy/checkpoints
33-
markers =
34-
cloud:Run the cloud tests for example
35-
filterwarnings =
36-
error::FutureWarning
37-
xfail_strict = true
38-
junit_duration_report = call
39-
40-
41-
[coverage:report]
42-
exclude_lines =
43-
pragma: no-cover
44-
warnings
45-
pass
46-
rank_zero_warn
47-
raise NotImplementedError
48-
49-
5020
[flake8]
5121
max-line-length = 120
5222
exclude =

0 commit comments

Comments
 (0)