chore: pre-commit fixes

This commit is contained in:
Mike A.
2025-08-04 14:41:49 +02:00
parent 78cd3b4600
commit 00c353fbb7
3 changed files with 14 additions and 3 deletions

View File

@@ -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

View File

@@ -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"]

View File

@@ -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()