diff --git a/docs/conf.py b/docs/conf.py index 81edb15..3b25bec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ -# Configuration file for the Sphinx documentation builder. +"""Configuration file for the Sphinx documentation builder.""" +# ruff: noqa: A001 # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html diff --git a/pyproject.toml b/pyproject.toml index e211b7d..6bc8200 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,9 @@ ignore = [ ] [tool.ruff.lint.per-file-ignores] +"docs/*" = [ + "INP001", # implicit namespaces +] "examples/*" = [ "T201", # use of "print" "S101", # use of "assert" @@ -71,6 +74,10 @@ ignore = [ "T201", # use of "print" "D", # documentation ] +"tests/*" = [ + "INP001", # implicit namespaces + "PLC0415", # import not on top of file +] [tool.setuptools] py-modules = ["findmy"] diff --git a/tests/test_keygen.py b/tests/test_keygen.py index 3b51e6e..cbb8b57 100644 --- a/tests/test_keygen.py +++ b/tests/test_keygen.py @@ -1,8 +1,11 @@ +"""Key generation tests.""" + import pytest -@pytest.mark.parametrize('execution_number', range(100)) -def test_import(execution_number): +@pytest.mark.parametrize("execution_number", range(100)) +def test_keypair(execution_number: int) -> None: # noqa: ARG001 + """Test generation of new keypairs.""" import findmy kp = findmy.KeyPair.new()