-
Notifications
You must be signed in to change notification settings - Fork 22
adding in an rst linter #796
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| name: reStructuredText Lint | ||
| on: | ||
| push: | ||
| branches: | ||
| - 'main' | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| run_lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Code Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Make Sphinx Requirements | ||
| run: | | ||
| echo "sphinx" > requirements.txt | ||
| echo "sphinx_rtd_theme" >> requirements.txt | ||
| echo "sphinx_design" >> requirements.txt | ||
| echo "sphinx-sitemap" >> requirements.txt | ||
| echo "sphinxcontrib-mermaid" >> requirements.txt | ||
| echo "doc8" >> requirements.txt | ||
| - name: Prepare Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.10' | ||
| cache: 'pip' | ||
| - name: Install Python Requirements | ||
| run: | | ||
| pip install -r requirements.txt | ||
| pip install doc8 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above, and then do i guess, as an alternative, we could put this requirements file in
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Regardless of the method chosen (requirement.txt or Take a look at the RDHPCS CONTRIBUTING.md file.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| - name: Lint RST files | ||
| run: doc8 * | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can stick these under
pyproject.toml'soptional-dependenciessection fordocsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay - let me see: also, not sure I need to have all of thee sphinx's installed. Might just need our typical docs dependencies + doc8.