Skip to content

Commit cc4bd81

Browse files
committed
Adds black to dev-deps and runs it through poetry
Previously, the Makefile depended on black being installed in the active Python venv already. This instead lets Poetry manage it, lets the lockfile determine the version, and has the Makefile run it via Poetry.
1 parent 9cb5083 commit cc4bd81

File tree

3 files changed

+141
-2
lines changed

3 files changed

+141
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ requirements:
1212

1313
f: format
1414
format:
15-
black lima-plugin *.py
15+
poetry run black lima-plugin
1616

1717
t: test
1818
test: format

poetry.lock

Lines changed: 139 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ python = "^3.9"
1010
coverage = "^5.5"
1111

1212
[tool.poetry.dev-dependencies]
13+
black = "*"
1314

1415
[build-system]
1516
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)