diff --git a/pyproject.toml b/pyproject.toml index 7779d6d4..e7b1609d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] @@ -62,6 +62,8 @@ build-backend = "setuptools.build_meta" [tool.ruff] target-version = "py38" + +[tool.ruff.lint] select = [ "B", # flake8-bugbear "C4", # flake8-comprehensions @@ -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 @@ -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