Skip to content

Commit 8fb423c

Browse files
committedAug 6, 2023
fix(72): Bad set of dependencies
Restricted the dependencies involved for flake8. Updated pyproject to allow flake8-pyproject to read settings from there black and isort are no longer required for publishing.
1 parent e254cf8 commit 8fb423c

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed
 

‎docs/sources/conf.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@
1616

1717

1818
def read_version():
19-
init = (
20-
pathlib.Path(__file__).parent.parent.parent / "pytest_monitor" / "__init__.py"
21-
)
19+
init = pathlib.Path(__file__).parent.parent.parent / "pytest_monitor" / "__init__.py"
2220
with init.open("r") as pkg_init_f:
23-
version_read = [
24-
line.strip() for line in pkg_init_f if line.startswith("__version__")
25-
]
21+
version_read = [line.strip() for line in pkg_init_f if line.startswith("__version__")]
2622
if len(version_read) > 1:
2723
raise ValueError('Multiple version found in "pytest_monitor" package!')
2824
if not version_read:
@@ -66,7 +62,7 @@ def read_version():
6662

6763
# General information about the project.
6864
project = "pytest-monitor"
69-
copyright = "2019, Jean-Sébastien Dieu"
65+
copyright = "2019, Jean-Sébastien Dieu" # noqa A001
7066
author = "Jean-Sébastien Dieu"
7167

7268
# The version info for the project you're documenting, acts as replacement for

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dev = [
6666
]
6767

6868
[tool.flake8]
69-
max_line_length = 120
69+
max-line-length = 120
7070

7171
[tool.black]
7272
line-length = 120

‎requirements.dev.txt

-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ flake8-simplify=0.19.3
66
flake8-comprehensions=3.10.1
77
flake8-pytest-style=1.6.0
88
flake8-return=1.2.0
9-
flake8-no-pep420=2.7.0
109
flake8-pyproject=1.2.3
11-
flake8-simplify=0.19.3

‎requirements.txt

-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ psutil>=5.1.0
22
memory_profiler>=0.58
33
pytest
44
requests
5-
black
6-
isort

0 commit comments

Comments
 (0)
Please sign in to comment.