Skip to content

Black commit hook#410

Merged
MarcelGeo merged 1 commit intodevelopfrom
black_commit_hook
Mar 18, 2025
Merged

Black commit hook#410
MarcelGeo merged 1 commit intodevelopfrom
black_commit_hook

Conversation

@varmar05
Copy link
Collaborator

Set up pre-commit hook to check py code is well formatted. Black is tighten to 2025.1.0 version.

Install:

pipenv run pre-commit install
pipenv run pre-commit run --all-files

Example:

$ git commit -m "bla bla"
black....................................................................Failed
- hook id: black
- files were modified by this hook

reformatted server/tests/test_auth.py

All done! ✨ 🍰 ✨
1 file reformatted, 1 file left unchanged.

$ git commit -m "bla bla"
black....................................................................Passed
[black_commit_hook e1998d52] chore: set up git pre-commit hook for black formatting
 5 files changed, 249 insertions(+), 124 deletions(-)

@varmar05 varmar05 changed the base branch from master to develop March 18, 2025 07:21
@varmar05 varmar05 requested a review from MarcelGeo March 18, 2025 07:22
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13917563813

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.286%

Totals Coverage Status
Change from base Build 13831682029: 0.0%
Covered Lines: 6819
Relevant Lines: 7389

💛 - Coveralls

@MarcelGeo MarcelGeo merged commit e3c2360 into develop Mar 18, 2025
4 checks passed
@MarcelGeo MarcelGeo deleted the black_commit_hook branch April 23, 2025 14:40
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.

3 participants