Skip to content

Commit a979ccb

Browse files
committed
attention for tests/test_imports
1 parent b2eedf1 commit a979ccb

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ dev = [
9090
[tool.ruff]
9191
[lint]
9292
select = ["E", "F", "I"]
93+
exclude = ["*__init__.py", "tests/test_imports.py"]
94+
9395
line-length = 120
9496
target-version = "py310"
95-
exclude = [
96-
"*__init__.py", "tests/test_imports.py"
97-
]
97+
#exclude = [
98+
# "*__init__.py", "tests/test_imports.py"
99+
#]
98100

99101
[build-system]
100102
requires = ["hatchling"]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import setuptools
44

5-
with open("README.md", "r") as f:
5+
with open("README.md") as f:
66
desc = f.read()
77
desc = desc.split("<!-- content -->")[-1]
88
desc = re.sub("<[^<]+?>", "", desc) # Remove html

tests/test_imports.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# ruff: noqa
2+
3+
14
def test_import_modules():
25
from pypfopt import (
36
base_optimizer,

0 commit comments

Comments
 (0)