Skip to content

Commit 45215e6

Browse files
committed
Refactor configurations.
1 parent d7fb5e5 commit 45215e6

File tree

3 files changed

+13
-32
lines changed

3 files changed

+13
-32
lines changed

pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,15 @@ extend-ignore = [
6565

6666
[tool.ruff.pydocstyle]
6767
convention = "numpy"
68+
69+
70+
[tool.pytest.ini_options]
71+
# Do not add src since it messes with the loading of pytask-parallel as a plugin.
72+
testpaths = ["test"]
73+
markers = [
74+
"wip: Tests that are work-in-progress.",
75+
"unit: Flag for unit tests which target mainly a single function.",
76+
"integration: Flag for integration tests which may comprise of multiple unit tests.",
77+
"end_to_end: Flag for tests that cover the whole program.",
78+
]
79+
norecursedirs = [".idea", ".tox"]

src/pytask_parallel/execute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def pytask_execute_build(session: Session) -> bool | None: # noqa: C901, PLR091
9696
if not ready_tasks:
9797
sleeper.increment()
9898

99-
for task_name in list(running_tasks):
99+
for task_name in running_tasks:
100100
future = running_tasks[task_name]
101101
if future.done():
102102
warning_reports, task_exception = future.result()

tox.ini

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,3 @@ conda_channels =
1818
commands =
1919
pip install --no-deps -e .
2020
pytest {posargs}
21-
22-
[flake8]
23-
docstring-convention = numpy
24-
ignore =
25-
D
26-
E203 ; ignores whitespace around : which is enforced by Black.
27-
W503 ; ignores linebreak before binary operator which is enforced by Black.
28-
PT006 ; ignores that parametrizing tests with tuple argument names is preferred.
29-
max-line-length = 88
30-
pytest-mark-no-parentheses = true
31-
warn-symbols =
32-
pytest.mark.wip = Remove 'wip' mark for tests.
33-
pytest.mark.skip = Remove 'skip' flag for tests.
34-
35-
[pytest]
36-
testpaths =
37-
# Do not add src since it messes with the loading of pytask-parallel as a plugin.
38-
tests
39-
addopts = --doctest-modules
40-
filterwarnings =
41-
ignore: the imp module is deprecated in favour of importlib
42-
ignore: The (symbol|parser) module is deprecated and will be removed in future
43-
ignore: Using or importing the ABCs from 'collections' instead of from
44-
markers =
45-
wip: Tests that are work-in-progress.
46-
unit: Flag for unit tests which target mainly a single function.
47-
integration: Flag for integration tests which may comprise of multiple unit tests.
48-
end_to_end: Flag for tests that cover the whole program.
49-
norecursedirs =
50-
.idea
51-
.tox

0 commit comments

Comments
 (0)