Page MenuHomeSoftware Heritage

Add pre-commit hooks, their configuration and apply fixes
ClosedPublic

Authored by anlambert on Thu, Apr 8, 2:44 PM.

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added a subscriber: vlorentz.

the blessed verb is "blacken", not "blackify" https://github.com/psf/black ;)

This revision is now accepted and ready to land.Thu, Apr 8, 2:54 PM
vlorentz requested changes to this revision.Thu, Apr 8, 2:54 PM

could you add some pre-commit config to run black?

This revision now requires changes to proceed.Thu, Apr 8, 2:54 PM

could you add some pre-commit config to run black?

Sure, will update.

Update:

  • Add pre-commit hooks and their configuration
  • Apply black and isort to all Python source files in the repository
  • Fix some typos detected with code spell

nice :)

just update the diff title before merging

This revision is now accepted and ready to land.Thu, Apr 8, 4:15 PM
anlambert retitled this revision from docker/tests: Blackify python source files to Add pre-commit hooks, their configuration and apply fixes.Thu, Apr 8, 4:24 PM
anlambert edited the summary of this revision. (Show Details)