Skip to content

Commit c3018d6

Browse files
authored
Developer QOL (#1174)
This update addresses two common pain points when developing on GitHub.com's browser editor: Delayed CI Testing: Small changes often accumulate, causing the CI to wait for all previous commits before testing your current commit. This delay can be inefficient. Suggestion: Cancel previous CI runs when pushing new commits to speed up the feedback loop. Lack of Fix Suggestions for ruff Issues: When ruff flags an issue, it highlights the problematic code block but doesn't suggest how to fix it. By adding the --diff option, you can see the differences and get guidance on correcting the issue. All this came about while working on #1170
1 parent 120c2a5 commit c3018d6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ci-main-${{ github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
14+
1115
env:
1216
PYTEST_ADDOPTS: "--color=yes"
1317

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ deps =
5353
ruff==0.9.5
5454
mypy==1.15.0
5555
commands =
56-
ruff check {posargs:pytest_django pytest_django_test tests}
56+
ruff check --diff {posargs:pytest_django pytest_django_test tests}
5757
ruff format --quiet --diff {posargs:pytest_django pytest_django_test tests}
5858
mypy {posargs:pytest_django pytest_django_test tests}
5959

0 commit comments

Comments
 (0)