Skip to content

Commit

Permalink
Partial isort in ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Jan 18, 2024
1 parent 79248b7 commit 80b8be1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Issues = "https://github.com/siecje/htmd/issues"
Repository = "https://github.com/siecje/htmd.git"

[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D100", "D103", "D104", "D203", "D211", "D212", "D213",
"INP001",
Expand All @@ -51,6 +50,7 @@ ignore = [
"UP015",
"ANN", "PTH", "I",
]
select = ["ALL"]

[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
Expand All @@ -59,6 +59,13 @@ multiline-quotes = "single"
[tool.ruff.format]
quote-style = "single"

[tool.ruff.lint.isort]
force-sort-within-sections = true
known-third-party = ["htmd"]
lines-after-imports = 2
order-by-type = false
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]

[tool.setuptools]
include-package-data = true

Expand Down
2 changes: 1 addition & 1 deletion tests/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from click.testing import CliRunner
from htmd.cli import build, start

from utils import remove_fields_from_example_post
from utils import remove_fields_from_example_post # noqa: I001


SUCCESS_REGEX = (
Expand Down

0 comments on commit 80b8be1

Please sign in to comment.