GitHub Actions: add pydocstyle

This commit is contained in:
Adam J. Stewart 2021-07-16 17:20:08 +00:00
Родитель ad54d16781
Коммит 859438809f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: C66C0675661156FC
2 изменённых файлов: 19 добавлений и 0 удалений

14
.github/workflows/docs.yaml поставляемый
Просмотреть файл

@ -17,6 +17,20 @@ on:
- 'requirements.txt'
- '.github/workflows/docs.yaml'
jobs:
pydocstyle:
name: pydocstyle
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install pydocstyle
run: pip install 'pydocstyle[toml]>=6.1'
- name: Run pydocstyle checks
run: pydocstyle
sphinx:
name: sphinx
runs-on: ubuntu-latest

Просмотреть файл

@ -59,6 +59,11 @@ warn_return_any = true
no_implicit_reexport = true
strict_equality = true
[tool.pydocstyle]
convention = "google"
match = '(?!setup).*\.py'
match_dir = '(datasets|samplers|torchgeo|trainers|transforms)'
[tool.pytest.ini_options]
norecursedirs = [
"*.egg*",