forked from pyscf/pyscf
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.36 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
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Lint
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install ruff
run: pip install ruff
- name: Check style
run: ruff check --config .ruff.toml pyscf
- name: Check NumPy
run: ruff check --select NPY --ignore NPY002 pyscf
flake:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install flake8
run: pip install "flake8>=3.7.0"
- name: Static analysis
run: flake8 --config .flake8 pyscf
lint-pycodestyle:
name: Code style check with pycodestyle
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pycodestyle
run: pip install pycodestyle
- name: Lint using pycodestyle
run: pycodestyle --select=E111,W191,W293 pyscf
# - name: Static analysis
# uses: suo/flake8-github-action@releases/v1
# with:
# checkName: 'flake' # NOTE: this needs to be the same as the job name
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: flake8 --config .flake8 pyscf