Skip to content

[master] Add pre-commit and run black

Chris Burr requested to merge cburr/LHCbDIRAC:pre-commit-master into master

The commits are readable if you avoid 3317e783, the three

  • 608987b2: Add the pre-commit configuration
  • 0a5ae621: Use Python 3 style prints in container/monitoring/simpleParseCAdvisor.py (not technically required)
  • 16681a34: Fix a few line length and pylint comments

To use it locally install pre-commit and run:

pre-commit install --allow-missing-config

(--allow-missing-config is only required if you're going to switch to branches which don't have any pre-commit configuration)

Merge request reports