From: Bob Halley Date: Sat, 6 May 2023 14:16:32 +0000 (-0700) Subject: Add support for ruff linter. X-Git-Tag: v2.4.0rc1~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2d06fe48fecad0a6b519dd45c10b364500cd83d;p=thirdparty%2Fdnspython.git Add support for ruff linter. --- 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']