From ad09659b14c71c2e363b55492597227f9cda7993 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:36:28 +0100 Subject: [PATCH] Modernise `ruff` config; delete redundnat `isort`, `black` config --- pyproject.toml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bd59351..dedaa3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ requests = "^2.23.1" playwright = "^1.39.0" [tool.poetry.group.dev.dependencies] -ruff = "^0.4.1" +ruff = "^0.5.0" [tool.poetry.group.test.dependencies] mypy = "^1.7.1" @@ -25,13 +25,6 @@ pytest = "^7.4.2" types-requests = "^2.31.0.10" types-beautifulsoup4 = "^4.12.0.7" -[tool.black] -line-length = 88 -target-version = ['py38'] - -[tool.isort] -profile = "black" - [tool.mypy] strict = true @@ -39,7 +32,7 @@ strict = true module = "playwright" disallow_untyped_calls = false -[tool.ruff] +[tool.ruff.lint] # Enable rulesets: # flake8-ANNotations, flake8-COMmas, pyDocstyle, pycodestylE, pyFlakes, Isort, # flake8-Future-Annotations, flake8-bandit (S) @@ -47,15 +40,13 @@ select = ["ANN", "COM", "D", "E", "F", "I", "FA", "S"] # Ignore rules that conflict with Ruff formatter: # COM812 Trailing comma missing -# Ignore other rules: -# Missing type annotation for `self` in method -ignore = ["COM812", "ANN101"] +ignore = ["COM812"] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] # Use of `assert` detected "**/{tests}/*" = ["S101"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" [build-system]