Skip to content

Commit fa37b7b

Browse files
committed
fix deprecated ruff config
1 parent 3846a6f commit fa37b7b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ dependencies = [
1616
"dash>=2.11.0",
1717
"flask-caching",
1818
"frozendict",
19+
"mp-api",
20+
"pydantic-settings",
1921
"pymatgen",
2022
"scikit-image",
2123
"scikit-learn",
2224
"shapely",
2325
"webcolors",
24-
"pydantic-settings",
25-
"mp-api",
2626
]
2727

2828
[project.optional-dependencies]
@@ -62,6 +62,8 @@ build-backend = "setuptools.build_meta"
6262

6363
[tool.ruff]
6464
target-version = "py38"
65+
66+
[tool.ruff.lint]
6567
select = [
6668
"B", # flake8-bugbear
6769
"C4", # flake8-comprehensions
@@ -103,6 +105,7 @@ ignore = [
103105
"D205", # 1 blank line required between summary line and description
104106
"E501", # Line too long
105107
"E731", # Do not assign a lambda expression, use a def
108+
"ISC001",
106109
"PD901", # pandas-df-variable-name
107110
"PERF203", # try-except-in-loop
108111
"PLR", # pylint refactor
@@ -111,7 +114,7 @@ ignore = [
111114
pydocstyle.convention = "google"
112115
isort.split-on-trailing-comma = false
113116

114-
[tool.ruff.per-file-ignores]
117+
[tool.ruff.lint.per-file-ignores]
115118
"**/tests/*" = ["D"]
116119
"__init__.py" = ["F401"]
117120
# future annotations incompatible with pydantic BaseModel schemas below py 3.10

0 commit comments

Comments
 (0)