Skip to content

Commit 59d29e4

Browse files
committed
fix: darker revision arg
1 parent 3eec808 commit 59d29e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ line-length = 120
33
target-version = ['py38']
44

55
[tool.darker]
6-
revision = 'origin/dev'
6+
revision = 'origin/dev...'
77
color = true
88
isort = true
99
flynt = true

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _migrate_file(url: str, filename: str):
3131

3232

3333
@task
34-
def lint(c, incremental=True, format=True, revision="origin/dev", diff=False): # pylint: disable=redefined-builtin
34+
def lint(c, incremental=True, format=True, revision="origin/dev...", diff=False): # pylint: disable=redefined-builtin
3535
"""Lint and format.
3636
3737
Additional linter settings can be found in `pyproject.toml` (this invocation
@@ -56,7 +56,7 @@ def lint(c, incremental=True, format=True, revision="origin/dev", diff=False):
5656
diff = "--diff" if diff else ""
5757
if incremental:
5858
if format:
59-
c.run(f"darker --revision {revision}... {diff} .")
59+
c.run(f"darker --revision {revision} {diff} .")
6060
out = c.run(f"git diff -U0 {revision} | lint-diffs")
6161
if out.stdout.strip() != "=== pylint: mine=0, always=0":
6262
print(out.stdout)

0 commit comments

Comments
 (0)