astropy / extension-helpers

Helpers to assist with building Python packages with compiled C/Cython extensions
https://extension-helpers.readthedocs.io
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

Add pre-commit configuration #53

Closed astrofrog closed 1 year ago

astrofrog commented 1 year ago

This enables pyupgrade and black and runs these

codecov[bot] commented 1 year ago

Codecov Report

Merging #53 (86143bc) into main (5bb1895) will decrease coverage by 3.57%. The diff coverage is 67.96%.

@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   79.86%   76.29%   -3.57%     
==========================================
  Files           4        4              
  Lines         298      308      +10     
==========================================
- Hits          238      235       -3     
- Misses         60       73      +13     
Impacted Files Coverage Δ
extension_helpers/__init__.py 24.00% <22.22%> (-22.16%) :arrow_down:
extension_helpers/_setup_helpers.py 66.32% <58.06%> (ø)
extension_helpers/_utils.py 91.48% <77.77%> (-0.52%) :arrow_down:
extension_helpers/_openmp_helpers.py 87.68% <91.11%> (-0.65%) :arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more