Skip to content

Commit 1090f60

Browse files
author
Daniel Goshev
committed
Drop ruff github actions step.
1 parent 939b33d commit 1090f60

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/django.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install dependencies
4848
run: pip install -r requirements/local.txt
4949
- name: Run ruff
50-
uses: chartboost/ruff-action@v1
50+
run: ruff check .
5151
- name: Type check
5252
run: mypy --config mypy.ini styleguide_example/
5353
- name: Run tests

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ To make sure all of the above tools work in symbiosis, you'd need to add some co
397397
2. Add `pyproject.toml` file to the root of your project. There you can add the `ruff` config.
398398
3. Make sure the linters are run against each PR on your CI. This is the config you need if you use GH actions:
399399

400+
- If you are running it as a separate step in the build process:
400401
```
401402
build:
402403
runs-on: ubuntu-latest
@@ -405,6 +406,12 @@ build:
405406
uses: chartboost/ruff-action@v1
406407
```
407408

409+
- If you would like to run it as a part of another step, which has already ran the package installation commands:
410+
```
411+
- name: Run ruff
412+
run: ruff check .
413+
```
414+
408415
4. Last but not least, we highly recommend you to setup you editor to run `ruff` every time you save a new Python file.
409416

410417
In order to test if your local setup is up to date, you can either:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ exclude = [
3131
]
3232

3333
# Same as Black.
34-
line-length = 88
34+
line-length = 120
3535
indent-width = 4
3636

3737
# Assume Python 3.12

0 commit comments

Comments
 (0)