modify sphere2 start point #14
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: Linting | |
on: | |
pull_request: | |
push: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ruff pre-commit | |
- name: Switch to a temporary branch | |
run: | | |
git checkout -b _ci_branch_ | |
- name: Run pre-commit on all files | |
env: | |
RUFF_OUTPUT_FORMAT: github | |
run: | | |
pre-commit run --show-diff-on-failure --color=always --all-files |