зеркало из https://github.com/microsoft/torchgeo.git
GitHub Actions: add pydocstyle
This commit is contained in:
Родитель
ad54d16781
Коммит
859438809f
|
@ -17,6 +17,20 @@ on:
|
||||||
- 'requirements.txt'
|
- 'requirements.txt'
|
||||||
- '.github/workflows/docs.yaml'
|
- '.github/workflows/docs.yaml'
|
||||||
jobs:
|
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:
|
sphinx:
|
||||||
name: sphinx
|
name: sphinx
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -59,6 +59,11 @@ warn_return_any = true
|
||||||
no_implicit_reexport = true
|
no_implicit_reexport = true
|
||||||
strict_equality = true
|
strict_equality = true
|
||||||
|
|
||||||
|
[tool.pydocstyle]
|
||||||
|
convention = "google"
|
||||||
|
match = '(?!setup).*\.py'
|
||||||
|
match_dir = '(datasets|samplers|torchgeo|trainers|transforms)'
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
norecursedirs = [
|
norecursedirs = [
|
||||||
"*.egg*",
|
"*.egg*",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче