mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 21:53:57 +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:
|
# For the full list of built-in configuration values, see the documentation:
|
||||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ ignore = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
|
"docs/*" = [
|
||||||
|
"INP001", # implicit namespaces
|
||||||
|
]
|
||||||
"examples/*" = [
|
"examples/*" = [
|
||||||
"T201", # use of "print"
|
"T201", # use of "print"
|
||||||
"S101", # use of "assert"
|
"S101", # use of "assert"
|
||||||
@@ -71,6 +74,10 @@ ignore = [
|
|||||||
"T201", # use of "print"
|
"T201", # use of "print"
|
||||||
"D", # documentation
|
"D", # documentation
|
||||||
]
|
]
|
||||||
|
"tests/*" = [
|
||||||
|
"INP001", # implicit namespaces
|
||||||
|
"PLC0415", # import not on top of file
|
||||||
|
]
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
py-modules = ["findmy"]
|
py-modules = ["findmy"]
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
|
"""Key generation tests."""
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('execution_number', range(100))
|
@pytest.mark.parametrize("execution_number", range(100))
|
||||||
def test_import(execution_number):
|
def test_keypair(execution_number: int) -> None: # noqa: ARG001
|
||||||
|
"""Test generation of new keypairs."""
|
||||||
import findmy
|
import findmy
|
||||||
|
|
||||||
kp = findmy.KeyPair.new()
|
kp = findmy.KeyPair.new()
|
||||||
|
|||||||
Reference in New Issue
Block a user