Skip to content

[pre-commit.ci] pre-commit autoupdate #72

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #72

Workflow file for this run

name: Linting
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install mypy ruff
- name: mypy
run: |
mypy --namespace-packages --explicit-package-bases pymatgen
- name: black
run: |
ruff .
ruff format .