Skip to content

Commit

Permalink
chore(helpers/pep517-helper.py): re-lint script for PEP 8 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
MingcongBai committed Feb 2, 2024
1 parent 75053e0 commit 2ccfdfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/pep517-helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
import tomli
import sys


def get_build_backend(root_dir: str) -> str:
with open(os.path.join(root_dir, "pyproject.toml"), "rb") as f:
proj = tomli.load(f)
build_sys = proj.get("build-system", {})
return build_sys.get("build-backend", "unknown")


if __name__ == "__main__":
print(get_build_backend(sys.argv[1]))

0 comments on commit 2ccfdfb

Please sign in to comment.