Skip to content

Commit a7f3e6a

Browse files
authored
Merge pull request #653 from opsmill/pog-FURB177
Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
2 parents 7ebc552 + 24395a4 commit a7f3e6a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

infrahub_sdk/ctl/importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
def local_directory() -> Path:
1818
# We use a function here to avoid failure when generating the documentation due to directory name
19-
return Path().resolve()
19+
return Path.cwd()
2020

2121

2222
def load(

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ ignore = [
184184
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
185185
"FURB110", # Replace ternary `if` expression with `or` operator
186186
"FURB113", # Use `lines.extend((" " * self.indentation + "}", "}"))` instead of repeatedly calling `lines.append()`
187-
"FURB177", # Prefer `Path.cwd()` over `Path().resolve()` for current-directory lookups
188187
"INP001", # File declares a package, but is nested under an implicit namespace package.
189188
"N802", # Function name should be lowercase
190189
"N806", # Variable in function should be lowercase

0 commit comments

Comments
 (0)