Skip to content

Commit 2eb68a9

Browse files
committed
Update source location to source
1 parent 1fc81e3 commit 2eb68a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ distlib = "https://bitbucket.org/pypa/distlib/raw/master/LICENSE.txt"
138138
webencodings = "https://github.com/SimonSapin/python-webencodings/raw/master/LICENSE"
139139

140140
[tool.ruff]
141+
src = ["src"]
141142
target-version = "py37"
142143
line-length = 88
143144
extend-exclude = [
@@ -173,9 +174,8 @@ select = [
173174
]
174175

175176
[tool.ruff.lint.isort]
176-
# We need to explicitly make pip "first party" as it's imported by code in
177-
# the docs and tests directories.
178-
known-first-party = ["pip"]
177+
# Explicitly make tests "first party" as it's not in the "src" directory
178+
known-first-party = ["tests"]
179179
known-third-party = ["pip._vendor"]
180180

181181
[tool.ruff.lint.mccabe]

0 commit comments

Comments
 (0)