Skip to content

Commit a185a20

Browse files
committed
Properly skip files with isort
1 parent d14ca8f commit a185a20

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ format: install-dev
6363

6464
lint: install-dev
6565
$(POETRY) run black --check --extend-exclude test-data/gardenlinux .
66-
$(POETRY) run isort --check-only --skip test-data/gardenlinux .
66+
$(POETRY) run isort --check-only .
6767
$(POETRY) run pyright
6868

6969
security: install-dev

pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Contains tools to work with the features directory of gardenlinux
55
authors = ["Garden Linux Maintainers <[email protected]>"]
66
license = "Apache-2.0"
77
readme = "README.md"
8-
packages = [{include = "gardenlinux", from="src"}]
8+
packages = [{ include = "gardenlinux", from = "src" }]
99

1010
[tool.poetry.dependencies]
1111
python = "^3.13"
@@ -48,12 +48,20 @@ norecursedirs = "test-data"
4848
profile = "black"
4949
line_length = 120
5050
known_first_party = ["gardenlinux"]
51+
skip = ["test-data", ".venv", "**/__pycache", ".pytest-cache", "hack"]
5152

5253
[tool.pyright]
5354
typeCheckingMode = "strict"
5455
venvPath = "."
5556
venv = ".venv"
56-
exclude = ["test-data", "docs", "hack", ".venv", ".pytest-cache", "**/__pycache"]
57+
exclude = [
58+
"test-data",
59+
"docs",
60+
"hack",
61+
".venv",
62+
".pytest-cache",
63+
"**/__pycache",
64+
]
5765

5866
[build-system]
5967
requires = ["poetry-core"]

0 commit comments

Comments
 (0)