]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Add support for ruff linter.
authorBob Halley <halley@dnspython.org>
Sat, 6 May 2023 14:16:32 +0000 (07:16 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 6 May 2023 14:16:32 +0000 (07:16 -0700)
Makefile
pyproject.toml

index e0f7ccdd995e8692e053d20608ef645f19b41394..94cd586aeea8ba1db0d84d00690eb8a1679da1e9 100644 (file)
--- 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/*'
index 30cf10f6980fa82e37783b296ae2e2a7b8ca34cb..d39a5999e35278127c9afd681638f8102cae621b 100644 (file)
@@ -73,3 +73,6 @@ requires = ["poetry-core"]
 build-backend = "poetry.core.masonry.api"
 
 [tool.setuptools_scm]
+
+[tool.ruff]
+ignore = ['E741', 'F401']