Skip to content

Commit

Permalink
refactor: Rename working_directory to repo_root
Browse files Browse the repository at this point in the history
  • Loading branch information
kdestin committed Feb 13, 2024
1 parent 74937cf commit 19eb5a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions infra/bootstrapping/check-readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
)
args = argParser.parse_args()
sample_path = str(args.sample_path).strip()
working_directory = Path(__file__).resolve().parent.parent
repo_root = Path(__file__).resolve().parent.parent


def main():
INVALID_README_MSG = f"{sample_path} does not contain a README.md file with all required words. See the Discoverability section of CONTRIBUTING.md."
EXCLUSIONS_FILE_PATH = (
f"{working_directory}/bootstrapping/readme_validation_exclusions.txt"
)
EXCLUSIONS_FILE_PATH = f"{repo_root}/bootstrapping/readme_validation_exclusions.txt"
required_sections = [
"overview",
"objective",
Expand Down

0 comments on commit 19eb5a2

Please sign in to comment.