Skip to content

Commit

Permalink
Fix isort config for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Feb 9, 2024
1 parent a3c3f4a commit b8702eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/test_preview.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from pathlib import Path
import subprocess
import sys
import time
from types import TracebackType

from click.testing import CliRunner
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

Expand Down

0 comments on commit b8702eb

Please sign in to comment.