mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 19:53:53 +02:00
chore: pre-commit fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user