Skip to content

Commit f3ddffc

Browse files
authored
Merge pull request #39 from anis-campos/fix-dev-dependencies
See more details in #39
2 parents e0e529a + a902b18 commit f3ddffc

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ export PYTHONPATH=.
1111
pip install --quiet --upgrade 'pip==23.3.1' 'pip-tools==7.3'
1212

1313
# generates a lock file with pinned version of all dependencies to be used by the CI and local devs
14-
requirements/dev.txt: .venv requirements/dev.in pyproject.toml
14+
requirements/dev.txt: .venv requirements/dev.in
1515
pip-compile \
1616
--quiet --generate-hashes --max-rounds=20 --strip-extras \
1717
--resolver=backtracking \
1818
--output-file requirements/dev.txt \
19-
requirements/dev.in pyproject.toml
19+
requirements/dev.in
2020

2121
# upgrades the dependencies to their latest/matching version
2222
.PHONY: upgrade
@@ -26,7 +26,7 @@ upgrade: .venv
2626
--upgrade \
2727
--resolver=backtracking \
2828
--output-file requirements/dev.txt \
29-
requirements/dev.in pyproject.toml
29+
requirements/dev.in
3030

3131

3232
# creates the venv if not present then install the dependencies, the package and pre-commit

pyproject.toml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,7 @@ 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-
]
48+
# [project.optional-dependencies] moved to requirements/dev.in
5549

5650
[project.urls]
5751
Changelog = "https://github.com/pylint-dev/pylint-pytest/blob/master/CHANGELOG.md"

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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile --generate-hashes --max-rounds=20 --output-file=requirements/dev.txt --strip-extras pyproject.toml requirements/dev.in
5+
# pip-compile --generate-hashes --max-rounds=20 --output-file=requirements/dev.txt --strip-extras requirements/dev.in
66
#
77
astroid==3.0.1 \
88
--hash=sha256:7d5895c9825e18079c5aeac0572bc2e4c83205c95d416e0b4fee8bc361d2d9ca \
@@ -135,7 +135,7 @@ 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 -r requirements/dev.in
139139
pyproject-hooks==1.0.0 \
140140
--hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \
141141
--hash=sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5
@@ -145,7 +145,6 @@ pytest==7.4.3 \
145145
--hash=sha256:d989d136982de4e3b29dabcc838ad581c64e8ed52c11fbe86ddebd9da0818cd5
146146
# via
147147
# -r requirements/dev.in
148-
# pylint-pytest (pyproject.toml)
149148
# pytest-cov
150149
pytest-cov==4.1.0 \
151150
--hash=sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6 \

0 commit comments

Comments
 (0)