Skip to content

Commit d6d7f9b

Browse files
committed
NPY201 for ruff
1 parent c7903c9 commit d6d7f9b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

light-curve/pyproject.toml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,6 @@ exclude = '''
108108

109109
[tool.ruff]
110110
line-length = 120
111-
select = [
112-
# Pyflakes
113-
"F",
114-
# Pycodestyle
115-
"E",
116-
"W",
117-
# isort
118-
"I001"
119-
]
120111
exclude = [
121112
"docs",
122113
"dist",
@@ -132,7 +123,20 @@ exclude = [
132123
]
133124
target-version = "py38"
134125

135-
[tool.ruff.per-file-ignores]
126+
[tool.ruff.lint]
127+
select = [
128+
# Pyflakes
129+
"F",
130+
# Pycodestyle
131+
"E",
132+
"W",
133+
# isort
134+
"I001",
135+
# Numpy v2.0 compatibility
136+
"NPY201",
137+
]
138+
139+
[tool.ruff.lint.per-file-ignores]
136140
# Unused and star imports
137141
"light_curve/__init__.py" = ["F401", "F403", "I001"]
138142
"light_curve/light_curve_ext.py" = ["F403", "F405"]

0 commit comments

Comments
 (0)