Skip to content

Commit b1f62c9

Browse files
committed
chore: pre-commit fixes
1 parent 78cd3b4 commit b1f62c9

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Configuration file for the Sphinx documentation builder.
1+
"""Configuration file for the Sphinx documentation builder."""
2+
# ruff: noqa: A001
23
#
34
# For the full list of built-in configuration values, see the documentation:
45
# https://www.sphinx-doc.org/en/master/usage/configuration.html

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ ignore = [
6161
]
6262

6363
[tool.ruff.lint.per-file-ignores]
64+
"docs/*" = [
65+
"INP001", # implicit namespaces
66+
]
6467
"examples/*" = [
6568
"T201", # use of "print"
6669
"S101", # use of "assert"
@@ -71,6 +74,10 @@ ignore = [
7174
"T201", # use of "print"
7275
"D", # documentation
7376
]
77+
"tests/*" = [
78+
"INP001", # implicit namespaces
79+
"PLC0415", # import not on top of file
80+
]
7481

7582
[tool.setuptools]
7683
py-modules = ["findmy"]

tests/test_keygen.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
"""Key generation tests."""
2+
13
import pytest
24

35

4-
@pytest.mark.parametrize('execution_number', range(100))
5-
def test_import(execution_number):
6+
@pytest.mark.parametrize("execution_number", range(100))
7+
def test_keypair(_execution_number: int) -> None: # noqa: PT019
8+
"""Test generation of new keypairs."""
69
import findmy
710

811
kp = findmy.KeyPair.new()

0 commit comments

Comments
 (0)