From 9f60dab7060976c251df70de2c3a337576c556ce Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 8 Jul 2024 01:33:13 -0400 Subject: [PATCH] Update for new ruff syntax (#826) * Update for new ruff syntax * Update pyproject.toml --- pyproject.toml | 7 ++++--- tox.ini | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b5af570..095e9cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,11 +52,12 @@ typecheck = ["mypy"] [tool.ruff] -ignore = ['N818'] -select = ['E', 'F', 'I', 'N', 'W', 'UP', 'RUF'] line-length = 79 -[tool.ruff.isort] +lint.ignore = ['N818'] +lint.select = ['E', 'F', 'I', 'N', 'W', 'UP', 'RUF'] + +[tool.ruff.lint.isort] known-first-party = ["bcrypt", "tests"] [tool.mypy] diff --git a/tox.ini b/tox.ini index 62c31d1..ec13ebb 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ commands = deps = ruff commands = - ruff . + ruff check . ruff format --check . [testenv:mypy]