From e188f77570901ef272e58b2973e6535c165b684c Mon Sep 17 00:00:00 2001 From: James Robinson Date: Wed, 21 Feb 2024 16:09:00 +0000 Subject: [PATCH] :wrench: Update linting dependencies --- pyproject.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3cdbf16..d48310c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,10 +43,10 @@ path = "apricot/__about__.py" [tool.hatch.envs.lint] detached = true dependencies = [ - "black>=23.1.0", - "mypy>=1.0.0", - "ruff>=0.0.243", - "types-oauthlib>=3.2.0", + "black~=24.2.0", + "mypy~=1.8.0", + "ruff~=0.2.0", + "types-oauthlib~=3.2.0", ] [tool.hatch.envs.lint.scripts] @@ -69,7 +69,7 @@ all = [ [tool.black] target-version = ["py310", "py311"] -[tool.ruff] +[tool.ruff.lint] select = [ # See https://beta.ruff.rs/docs/rules/ "A", # flake8-builtins @@ -91,7 +91,7 @@ select = [ "PLW", # pylint warning "Q", # flake8-quotes "RUF", # ruff rules - "S", # flake8-bandits + "S", # flake8-bandit "T", # flake8-debugger and flake8-print "TID", # flake8-tidy-imports "UP", # pyupgrade @@ -109,13 +109,13 @@ ignore = [ "PLR0915", # ignore too-many-statements ] -[tool.ruff.isort] +[tool.ruff.lint.flake8-tidy-imports] +ban-relative-imports = "parents" + +[tool.ruff.lint.isort] combine-as-imports = true known-first-party = ["apricot"] -[tool.ruff.flake8-tidy-imports] -ban-relative-imports = "parents" - [tool.mypy] disallow_subclassing_any = false # allow subclassing of types from third-party libraries files = "apricot" # run mypy over this directory