Skip to content

lint

lint #2912

Workflow file for this run

name: lint
on:
push:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pushd packages/
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-optional.txt ]; then pip install -r requirements-optional.txt; fi
popd
pushd packages/fairchem-core
pip install -e .[dev]
popd
- name: ruff
run: |
ruff --version
ruff check --statistics --config packages/fairchem-core/pyproject.toml src/fairchem/core/
ruff check --statistics --config packages/fairchem-data-oc/pyproject.toml src/fairchem/data/oc/
#ruff check --statistics --config packages/fairchem-data-om/pyproject.toml src/fairchem/data/om/
#ruff check --statistics --config packages/fairchem-demo-ocpapi/pyproject.toml src/fairchem/demo/ocpapi/