Change a couple of particle defaults and improve docs #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI lint | |
on: | |
push: | |
branches: ["main"] | |
paths: | |
- ".github/workflows/ci-lint.yml" | |
- "pyproject.toml" | |
- ".flake8" | |
- "src/**/*.py" | |
- "src/**/*.pyx" | |
- "src/**/*.pxd" | |
- "tests/**/*.py" | |
- "scripts/**/*.py" | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install linter dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 cython-lint | |
- name: Lint Python code with flake8 | |
run: | | |
flake8 src tests scripts --count --show-source --statistics | |
- name: Lint Cython code with cython-lint | |
run: | | |
cython-lint src |