Skip to content

Add Python code formatting with Black as Make steps #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2022
Merged

Conversation

ajnelson-nist
Copy link
Member

This patch series adds two Make targets to the test environment so a manual format-review can be done:

  • Testing - cd tests ; make check-black
  • Formatting - cd tests ; make format

Further discussion needs to be had before these are added to CI steps.

References:

  • [AC-215] Evaluate pre-commit usage on casework repositories
  • [AC-216] Apply Black to all casework Python code bases

This patch adds two Make targets to the test environment so a manual
format-review can be done:

* Testing - `cd tests ; make check-black`
* Formatting - `cd tests ; make format`

Further discussion needs to be had before these are added to CI steps.

A follow-on patch will apply Black, so mechanical effects can be
separated from manual changes.

References:
* [AC-215] Evaluate pre-commit usage on casework repositories
* [AC-216] Apply Black to all casework Python code bases

Acked-by: kchason <kchason@users.noreply.github.com>
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
References:
* [AC-216] Apply Black to all casework Python code bases

Acked-by: kchason <kchason@users.noreply.github.com>
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
@kchason kchason merged commit f174764 into develop Mar 21, 2022
@ajnelson-nist ajnelson-nist deleted the AC-216 branch March 21, 2022 17:25
@ajnelson-nist ajnelson-nist mentioned this pull request Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants