-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #371 from fabric-testbed/320.config-docstrings
Add docstrings to config module
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# A check to ensure that our docstring coverage remains pretty good. | ||
# | ||
# We use interrogate (https://interrogate.readthedocs.io/) to check | ||
# docstring coverage. Settings are under `[tool.interrogate]` section | ||
# of the pyproject.toml file in the top-level directory. | ||
|
||
name: Check docstring coverage | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
|
||
checks: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
cache: 'pip' # cache pip dependencies | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install interrogate | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install interrogate==1.7.0 | ||
- name: Check docstring coverage with interrogate | ||
run: | | ||
python -m interrogate -vv fabrictestbed_extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters