Skip to content

Commit fb39a85

Browse files
anis-camposAnis Da Silva Campos
authored andcommitted
define dev dependencies in the requirement file only
we can mix pyproject.toml and dependency files, as the first one will be used while installing the package but the last one only serve in the CI. Keeping the dev requirement in one place will simplify the requirement management
1 parent e0e529a commit fb39a85

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

pyproject.toml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ dependencies = [
4545
"pytest>=4.6",
4646
]
4747

48-
[project.optional-dependencies]
49-
test = [
50-
"pytest",
51-
"pytest-cov",
52-
# For linting purposes, only pylint>3 is supported
53-
"pylint>=3",
54-
]
55-
5648
[project.urls]
5749
Changelog = "https://github.com/pylint-dev/pylint-pytest/blob/master/CHANGELOG.md"
5850
Documentation = "https://github.com/pylint-dev/pylint-pytest#readme"

requirements/dev.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# For linting purposes, only pylint>3 is supported
2+
pylint>=3
3+
14
# to handle dependencies
25
pip-tools
36
wheel

requirements/dev.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ pre-commit==3.5.0 \
135135
pylint==3.0.2 \
136136
--hash=sha256:0d4c286ef6d2f66c8bfb527a7f8a629009e42c99707dec821a03e1b51a4c1496 \
137137
--hash=sha256:60ed5f3a9ff8b61839ff0348b3624ceeb9e6c2a92c514d81c9cc273da3b6bcda
138-
# via pylint-pytest (pyproject.toml)
138+
# via
139+
# -r requirements/dev.in
140+
# pylint-pytest (pyproject.toml)
139141
pyproject-hooks==1.0.0 \
140142
--hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \
141143
--hash=sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5

0 commit comments

Comments
 (0)