Skip to content

Commit

Permalink
Add linter; fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Jan 2, 2025
1 parent aae58fe commit 6262bc2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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.10
- name: Install flake8
run: pip install "flake8>=3.7.0"
- name: Static analysis
run: flake8 --config .flake8 pyscf
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.10
python-version: "3.10"
- name: Install
run: pip install pyscf packaging pytest
- name: Test
Expand Down

0 comments on commit 6262bc2

Please sign in to comment.