sync #256
This file contains hidden or 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: Lint | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv with python version. | |
uses: astral-sh/setup-uv@v5 | |
with: | |
python-version: "3.11" | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Install dependencies | |
run: | | |
uv sync --group lint | |
uv pip install -e . | |
- name: ruff | |
run: | | |
uv run ruff check . | |
uv run ruff format --check . | |
- name: mypy | |
run: uv run mypy -p pymatgen | |
- name: pyright | |
run: uv run pyright src |