From b2dd8b24760f122c240bd8c3e585f45a0a5fa32f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donncha=20=C3=93=20Cearbhaill?= Date: Fri, 19 Dec 2025 13:40:15 +0100 Subject: [PATCH] Fix Makefile and PyProtject config for current Ruff --- Makefile | 7 +------ pyproject.toml | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 16bde09..53b9b5c 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,9 @@ PWD = $(shell pwd) -autofix: - ruff format . - ruff check --fix . - check: ruff mypy ruff: - ruff format --check . - ruff check -q . + ruff check . mypy: mypy diff --git a/pyproject.toml b/pyproject.toml index abf5e9b..6f1a126 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,7 @@ packages = "src" addopts = "-ra -q --cov=mvt --cov-report html --junitxml=pytest.xml --cov-report=term-missing:skip-covered" testpaths = ["tests"] -[tool.ruff.lint] +[tool.ruff] select = ["C90", "E", "F", "W"] # flake8 default set ignore = [ "E501", # don't enforce line length violations @@ -95,10 +95,10 @@ ignore = [ # "E203", # whitespace-before-punctuation ] -[tool.ruff.lint.per-file-ignores] +[tool.ruff.per-file-ignores] "__init__.py" = ["F401"] # unused-import -[tool.ruff.lint.mccabe] +[tool.ruff.mccabe] max-complexity = 10 [tool.setuptools]