mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-11-10 00:10:46 +08:00
pre-commit is handled automatically by pre-commit.ci
This commit is contained in:
parent
8c74c3a855
commit
f24f069408
2 changed files with 1 additions and 48 deletions
47
.github/workflows/ci.yml
vendored
47
.github/workflows/ci.yml
vendored
|
|
@ -1,47 +0,0 @@
|
|||
name: Run Pre-Commit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- develop # Adjust as needed to only run on branches containing 'develop'
|
||||
push:
|
||||
branches:
|
||||
- develop # Adjust as needed
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.9'
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
uv venv .venv
|
||||
source .venv/bin/activate
|
||||
uv pip install pre-commit
|
||||
|
||||
- name: Run pre-commit version check
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
pre-commit run increase-version --all-files
|
||||
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: astral-sh/ruff-action@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
command: 'ruff check'
|
||||
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
4.5.6-develop15
|
||||
4.5.6-develop16
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue