diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8813073..c63a7fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,6 +21,6 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.3.5 hooks: - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 2829bcc..d2dd5b5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ markdown = ["markdown>=3.4"] [tool.pdm.dev-dependencies] lint = [ "invoke>=2.2.0", - "ruff>=0.1.3", + "ruff>=0.3.5,<0.4.0" ] test = [ "markdown>=3.4", @@ -56,7 +56,7 @@ git-username = "botpub" git-email = "52496925+botpub@users.noreply.github.com" append-github-contributor = true -[tool.ruff] +[tool.ruff.lint] select = [ "B", # flake8-bugbear "BLE", # flake8-blind-except @@ -91,7 +91,7 @@ ignore = [ "RUF100", # unused blanket `NOQA` directive ] -[tool.ruff.isort] +[tool.ruff.lint.isort] combine-as-imports = true force-sort-within-sections = true known-first-party = ["pelican"]