recast-hep / recast-atlas

CLI for ATLAS RECAST contributors
https://recast.docs.cern.ch/
Apache License 2.0
5 stars 5 forks source link

feat: Add pre-commit hooks #81

Closed matthewfeickert closed 2 years ago

matthewfeickert commented 2 years ago

Add and apply pre-commit hooks and use pre-commit.ci to enforce them.

* Add and apply pre-commit hooks
   - Use pyupgrade to adopt f-strings
   - Remove whitespace at ends of lines
   - Ensure newline at end of files
   - Reformat setup.cfg and change name to use underscores in accordance with setup-cfg-fmt
     Note that names are normalized to use dashes, so the name is still 'recast-atlas'
* Update packaging CI to use underscores in sdist name
* Add pre-commit.ci config to pre-commit hooks
* Add pre-commit.ci badge to README