Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix 'file does not exist' when running check-readme #3002

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

kdestin
Copy link
Member

@kdestin kdestin commented Feb 13, 2024

Description

This pull request fixes a bug in CI where the check-readme.py step is unable to find the exclusion list.

Checklist

  • I have read the contribution guidelines.
  • I have coordinated with the docs team ([email protected]) if this PR deletes files or changes any file names or file extensions.
  • Pull request includes test coverage for the included changes.
  • This notebook or file is added to the CODEOWNERS file, pointing to the author or the author's team.

    __file__ is a relative path for Python 3.5-3.8, but absolute
    in Python>=3.9

    This distinction causes us to calculate the incorrect path for the
    root of the repo:

      Path.parent will return '.' once you hit the "root" of a relative
      path (i.e. Path('./README.md').parent.parent == Path('.'))
@kdestin kdestin requested a review from diondrapeck February 13, 2024 21:14
@kdestin kdestin closed this Feb 13, 2024
@kdestin kdestin reopened this Feb 13, 2024
@kdestin kdestin merged commit 5049533 into main Feb 13, 2024
194 of 387 checks passed
@kdestin kdestin deleted the kdestin/fix-readme-validation branch February 13, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant