Skip to content

Multi-pool and events based database refactor #6570

Multi-pool and events based database refactor

Multi-pool and events based database refactor #6570

Workflow file for this run

name: lint
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{github.token}}
- name: set up python
uses: actions/setup-python@v4
with:
python-version: "3.10"
token: ${{github.token}}
- name: install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: install requirements
run: |
uv venv .venv -p 3.10
source .venv/bin/activate
uv pip install -e .[all]
- name: run black
run: |
source .venv/bin/activate
python -m black --config pyproject.toml --check --diff .
- name: get all Python files
id: list_files
run: |
echo "files=$(git ls-files '*.py' '*.pyi' | xargs)" >> $GITHUB_OUTPUT
- name: run Pylint on files
run: |
source .venv/bin/activate
files="${{ steps.list_files.outputs.files }}"
if [ -n "$files" ]; then
pylint --rcfile=.pylintrc $files
else
echo "No Python files found."
fi