From 80b8be12c070cc7225afed8854ec032439ed1994 Mon Sep 17 00:00:00 2001 From: Cody Scott Date: Thu, 18 Jan 2024 13:41:02 -0500 Subject: [PATCH] Partial isort in ruff --- pyproject.toml | 9 ++++++++- tests/test_build.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 44c5ba4..5f4e972 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -51,6 +50,7 @@ ignore = [ "UP015", "ANN", "PTH", "I", ] +select = ["ALL"] [tool.ruff.lint.flake8-quotes] inline-quotes = "single" @@ -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 diff --git a/tests/test_build.py b/tests/test_build.py index 17fa242..edbddc1 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -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 = (