Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2025
1 parent 23cb90f commit d7896df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow_diagrams/class_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def retrieve_class_refs(directory: str) -> list[ClassRef]:
fs = open_fs(directory)
for path in fs.walk.files(filter=["*.py"], exclude=["__init__.py"]):
with fs.open(path) as python_file:
module_path = f'{directory.rsplit("/", 1)[-1]}.{path.removeprefix("/").removesuffix(".py").replace("/", ".")}'
module_path = f"{directory.rsplit('/', 1)[-1]}.{path.removeprefix('/').removesuffix('.py').replace('/', '.')}"

for node in ast.walk(ast.parse(python_file.read())):
if isinstance(node, ast.ClassDef) and not node.name.startswith("_"):
Expand Down

0 comments on commit d7896df

Please sign in to comment.