-
Notifications
You must be signed in to change notification settings - Fork 61
35 lines (33 loc) · 960 Bytes
/
linting.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
name: Linting
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: pip
cache-dependency-path: requirements-ci.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-ci.txt --quiet
- name: pydocstyle
run: |
pydocstyle --count m3gnet
- name: pylint
run: |
pylint m3gnet
- name: black
run: |
black --version
black --check --diff --color m3gnet
- name: flake8
run: |
flake8 --version
flake8 --count --show-source --statistics m3gnet
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics m3gnet