From a2d06fe48fecad0a6b519dd45c10b364500cd83d Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 6 May 2023 07:16:32 -0700 Subject: [PATCH] Add support for ruff linter. --- Makefile | 3 +++ pyproject.toml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Makefile b/Makefile index e0f7ccdd..94cd586a 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,9 @@ polint: poflake: poetry run flake8 dns +poruff: + poetry run ruff dns + pocov: poetry run coverage run --branch -m pytest poetry run coverage html --include 'dns/*' diff --git a/pyproject.toml b/pyproject.toml index 30cf10f6..d39a5999 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,3 +73,6 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.setuptools_scm] + +[tool.ruff] +ignore = ['E741', 'F401'] -- 2.47.3