Skip to content

Commit

Permalink
Adds black to dev-deps and runs it through poetry
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Colin Dean <[email protected]>
  • Loading branch information
colindean committed Jun 3, 2022
1 parent 9cb5083 commit d93bb6d
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requirements:

f: format
format:
black lima-plugin *.py
poetry run black lima-plugin

t: test
test: format
Expand Down
140 changes: 139 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ python = "^3.9"
coverage = "^5.5"

[tool.poetry.dev-dependencies]
black = "*"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit d93bb6d

Please sign in to comment.