-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (37 loc) · 1.41 KB
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Pylint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --requirement requirements.txt
- name: Run pylint
# TODO: Use a config file for settings
run: |
find generative/ tests/ tools/ -name '*.py' -exec pylint \
--rcfile=/dev/null \
--fail-under 9.0 \
-d invalid-name \
-d fixme \
-d redefined-outer-name \
-d missing-module-docstring \
-d missing-class-docstring \
-d missing-function-docstring \
-d duplicate-code \
-d wrong-import-position \
{} +
- name: Run pydocstyle
# www.pydocstyle.org/en/stable/error_codes.html
# TODO: Move the list of ignored checks to a config file.
run: |
find generative/ tools/ -name '*.py' -exec pydocstyle \
--ignore=D100,D103,D104,D105,D203,D213,D407,D413 \
{} +