Skip to content

Commit 2c5a047

Browse files
committed
Remove numpy version pin
1 parent 1cf1ee0 commit 2c5a047

1 file changed

Lines changed: 14 additions & 40 deletions

File tree

pyproject.toml

Lines changed: 14 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,7 @@ classifiers = [
1818
]
1919
dynamic = ["version"]
2020
requires-python = ">=3.10"
21-
dependencies = [
22-
"click",
23-
"deeplc<4",
24-
"psm_utils",
25-
"pandas",
26-
"numpy==1.26.0",
27-
"rich",
28-
]
21+
dependencies = ["click", "deeplc<4", "psm_utils", "pandas", "numpy", "rich"]
2922

3023
[project.optional-dependencies]
3124
dev = [
@@ -35,7 +28,7 @@ dev = [
3528
"pytest-cov>=4.0",
3629
"pytest-mock>=3.10",
3730
"mypy>=1.0",
38-
"pre-commit>=3.0"
31+
"pre-commit>=3.0",
3932
]
4033
docs = [
4134
"sphinx>=6.0",
@@ -45,11 +38,9 @@ docs = [
4538
"toml>=0.10",
4639
"semver>=2.13",
4740
"sphinx_rtd_theme>=1.2",
48-
"sphinx-autobuild>=2021.3"
41+
"sphinx-autobuild>=2021.3",
4942
]
50-
er = [
51-
"im2deeptrainer",
52-
"torch==2.3.0"]
43+
er = ["im2deeptrainer", "torch==2.3.0"]
5344

5445
[project.urls]
5546
GitHub = "https://github.com/CompOmics/IM2Deep"
@@ -63,7 +54,7 @@ requires = ["setuptools"]
6354
build-backend = "setuptools.build_meta"
6455

6556
[tool.setuptools.dynamic]
66-
version = {attr = "im2deep.__version__"}
57+
version = { attr = "im2deep.__version__" }
6758

6859
[tool.isort]
6960
profile = "black"
@@ -105,40 +96,23 @@ warn_unreachable = true
10596
strict_equality = true
10697

10798
[[tool.mypy.overrides]]
108-
module = [
109-
"deeplc.*",
110-
"torch.*",
111-
"im2deeptrainer.*",
112-
"psm_utils.*"
113-
]
99+
module = ["deeplc.*", "torch.*", "im2deeptrainer.*", "psm_utils.*"]
114100
ignore_missing_imports = true
115101

116102
[tool.pytest.ini_options]
117103
minversion = "7.0"
118-
addopts = [
119-
"-ra",
120-
"--strict-markers",
121-
"--strict-config"
122-
]
104+
addopts = ["-ra", "--strict-markers", "--strict-config"]
123105
testpaths = ["tests"]
124-
filterwarnings = [
125-
"error",
126-
"ignore::UserWarning",
127-
"ignore::DeprecationWarning"
128-
]
106+
filterwarnings = ["error", "ignore::UserWarning", "ignore::DeprecationWarning"]
129107
markers = [
130108
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
131109
"integration: marks tests as integration tests",
132-
"unit: marks tests as unit tests"
110+
"unit: marks tests as unit tests",
133111
]
134112

135113
[tool.coverage.run]
136114
source = ["im2deep"]
137-
omit = [
138-
"*/tests/*",
139-
"*/test_*",
140-
"*/__main__.py"
141-
]
115+
omit = ["*/tests/*", "*/test_*", "*/__main__.py"]
142116

143117
[tool.coverage.report]
144118
exclude_lines = [
@@ -151,7 +125,7 @@ exclude_lines = [
151125
"if 0:",
152126
"if __name__ == .__main__.:",
153127
"class .*\\bProtocol\\):",
154-
"@(abc\\.)?abstractmethod"
128+
"@(abc\\.)?abstractmethod",
155129
]
156130

157131
[tool.ruff]
@@ -167,7 +141,7 @@ select = [
167141
"UP", # pyupgrade
168142
]
169143
ignore = [
170-
"E501", # line too long, handled by black
171-
"B008", # do not perform function calls in argument defaults
172-
"C901", # too complex
144+
"E501", # line too long, handled by black
145+
"B008", # do not perform function calls in argument defaults
146+
"C901", # too complex
173147
]

0 commit comments

Comments
 (0)