mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Revert "Only format correct directories"
This reverts commit c3b6f07c4336e6639e4597a800700820155ad294. This commit hardcoded the paths that `isort` and `black` checks. This means that the `check-format` job will act on the entire codebase instead of only changed files. We need to define a `path` argument with a default value in order to achieve the above. Regarding "." vs "beets beetsplug test", the intention behind using "." was to also check python files like `docs/conf.py` and `extra/release.py` which I presume we would also want to format properly.
This commit is contained in:
parent
b00a83c229
commit
627c0698ee
1 changed files with 4 additions and 2 deletions
|
|
@ -163,11 +163,13 @@ poetry = ">=1.8"
|
|||
# something unwanted locally, we should add these paths to .gitignore.
|
||||
[tool.poe.tasks._black]
|
||||
help = "Run black"
|
||||
cmd = "black $OPTS beets beetsplug test"
|
||||
cmd = "black $OPTS $path"
|
||||
args = { path = { help = "Path to blacken", positional = true, multiple = true, default = "." } }
|
||||
|
||||
[tool.poe.tasks._isort]
|
||||
help = "Run isort"
|
||||
cmd = "isort $OPTS beets beetsplug test"
|
||||
cmd = "isort $OPTS $path"
|
||||
args = { path = { help = "Path to isort", positional = true, multiple = true, default = "." } }
|
||||
|
||||
[tool.poe.tasks.bump]
|
||||
help = "Bump project version and update relevant files"
|
||||
|
|
|
|||
Loading…
Reference in a new issue