diff --git a/pyproject.toml b/pyproject.toml index 0f06fdc..438c175 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,9 @@ Homepage = "https://github.com/siecje/htmd" Issues = "https://github.com/siecje/htmd/issues" Repository = "https://github.com/siecje/htmd.git" +[tool.ruff] +src = [".", "tests"] + [tool.ruff.lint] ignore = [ "D100", "D101", "D103", "D104", "D105", "D107", "D203", "D211", "D212", "D213", @@ -67,13 +70,8 @@ order-by-type = false section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] [tool.ruff.lint.per-file-ignores] -"htmd/utils.py" = ["I001"] -"tests/test_app.py" = ["I001", "ARG001"] -"tests/test_build.py" = ["I001"] -"tests/test_drafts.py" = ["ARG001", "I001"] -"tests/test_post_dates.py" = ["I001"] -"tests/test_preview.py" = ["I001"] -"tests/test_verify.py" = ["I001"] +"tests/test_app.py" = ["ARG001"] +"tests/test_drafts.py" = ["ARG001"] [tool.setuptools] include-package-data = true diff --git a/tests/test_preview.py b/tests/test_preview.py index 2cde2b1..33b3bec 100644 --- a/tests/test_preview.py +++ b/tests/test_preview.py @@ -1,4 +1,6 @@ from pathlib import Path +import subprocess +import sys import time from types import TracebackType @@ -6,8 +8,6 @@ from htmd.cli import preview import pytest import requests -import subprocess -import sys from utils import set_example_to_draft, set_example_to_draft_build