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.
Type of changes
Adds dev dependency
Use that dependency's installed binary in Makefile
Checklist
[X] All new and existing tests pass.
[X] Any added/updated scripts added use #!/usr/bin/env interpreter instead of potentially platform-specific direct paths (#!/bin/sh and #!/bin/bash are allowed exceptions)
[X] Added/updated scripts are marked executable
[X] Scripts do not have a language file extension unless they are meant to be sourced and not run standalone. No end-user should have to know if a script was written in bash, python, ruby or whatever. Not including file extensions makes it easier to rewrite the script in another language later without having to change every reference to the previous version.
[X] I have confirmed that the link(s) in my PR are valid.
License Acceptance
[X] This repository is Apache version 2.0 licensed (some scripts may have alternate licensing inline in their code) and by making this PR, I am contributing my changes to the repository under the terms of the Apache 2 license.
Description
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.
Type of changes
Checklist
#!/usr/bin/env interpreter
instead of potentially platform-specific direct paths (#!/bin/sh
and#!/bin/bash
are allowed exceptions)bash
,python
,ruby
or whatever. Not including file extensions makes it easier to rewrite the script in another language later without having to change every reference to the previous version.License Acceptance