Skip to content

Commit c7f45f5

Browse files
committed
fix: another attempt
1 parent 94bd8ce commit c7f45f5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/lint.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ jobs:
3535
pip install -r requirements.lint.txt
3636
- name: Lint
3737
run: |
38-
inv lint --diff --no-format --revision=${{ steps.commit-range.outputs.commit-range }}
38+
first_commit=$(echo "${{ steps.commit-range.outputs.commit-range }}" | cut -d. -f1)
39+
inv lint --diff --no-format --revision=$first_commit

tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _migrate_file(url: str, filename: str):
3030

3131

3232
@task
33-
def lint(c, incremental=True, lint=True, format=True, revision="origin/dev", diff=False):
33+
def lint(c, incremental=True, lint=True, format=True, revision="origin/dev", diff=False): # pylint: disable=redefined-outer-name, redefined-builtin
3434
"""Lint and format.
3535
3636
Additional linter settings can be found in `pyproject.toml` (this invocation

0 commit comments

Comments
 (0)