File tree Expand file tree Collapse file tree 3 files changed +24
-23
lines changed Expand file tree Collapse file tree 3 files changed +24
-23
lines changed Original file line number Diff line number Diff line change 11name : lint & format
2- on :
3- pull_request :
4- types : [opened, reopened, synchronize]
2+ on :
3+ pull_request :
4+ types : [opened, reopened, synchronize]
55
66jobs :
7- lint :
8- runs-on : ubuntu-latest
9- steps :
10- - uses : actions/checkout@v4
11- - name : Install Python
12- uses : actions/setup-python@v5
13- with :
14- python-version : " 3.11"
15- - name : Install ruff
16- run : |
17- python -m pip install --upgrade pip
18- pip install ruff
19- - name : Run lint
20- run : ruff check --output-format=github contentctl/
21- - name : Run Formatter
22- run : ruff format --check contentctl/
7+ lint :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v4
11+ - name : Install Python
12+ uses : actions/setup-python@v5
13+ with :
14+ python-version : ' 3.11'
15+ - name : Install Poetry
16+ run : python -m pip install poetry
17+ - name : Install ruff
18+ run : |
19+ poetry install --only=dev
20+ - name : Run lint
21+ run : poetry run ruff check --output-format=github contentctl/
22+ - name : Run Formatter
23+ run : poetry run ruff format --check contentctl/
Original file line number Diff line number Diff line change 88 - id : detect-private-key
99 - id : forbid-submodules
1010 - repo : https://github.com/astral-sh/ruff-pre-commit
11- rev : v0.12.5
11+ rev : v0.12.10
1212 hooks :
13- - id : ruff
14- args : [ --fix ]
13+ - id : ruff-check
14+ args : [--fix]
1515 - id : ruff-format
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ setuptools = ">=80.9.0"
3838rich = " ^14.0.0"
3939
4040[tool .poetry .group .dev .dependencies ]
41- ruff = " ^0.12.5 "
41+ ruff = " ^0.12.10 "
4242
4343[build-system ]
4444requires = [" poetry-core>=1.0.0" ]
You can’t perform that action at this time.
0 commit comments