Skip to content

Commit

Permalink
fix deprecated ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
janosh committed Jun 9, 2024
1 parent 3846a6f commit fa37b7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ dependencies = [
"dash>=2.11.0",
"flask-caching",
"frozendict",
"mp-api",
"pydantic-settings",
"pymatgen",
"scikit-image",
"scikit-learn",
"shapely",
"webcolors",
"pydantic-settings",
"mp-api",
]

[project.optional-dependencies]
Expand Down Expand Up @@ -62,6 +62,8 @@ build-backend = "setuptools.build_meta"

[tool.ruff]
target-version = "py38"

[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
Expand Down Expand Up @@ -103,6 +105,7 @@ ignore = [
"D205", # 1 blank line required between summary line and description
"E501", # Line too long
"E731", # Do not assign a lambda expression, use a def
"ISC001",
"PD901", # pandas-df-variable-name
"PERF203", # try-except-in-loop
"PLR", # pylint refactor
Expand All @@ -111,7 +114,7 @@ ignore = [
pydocstyle.convention = "google"
isort.split-on-trailing-comma = false

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["D"]
"__init__.py" = ["F401"]
# future annotations incompatible with pydantic BaseModel schemas below py 3.10
Expand Down

0 comments on commit fa37b7b

Please sign in to comment.