mirror of
https://github.com/jongracecox/anybadge.git
synced 2026-01-07 21:02:01 +01:00
- Add .pre-commit-config.yaml with initial config. - Add python black pre-commit config - Apply pre-commit code changes - Add information to CONTRIBUTING.md - Add pre-commit to build requirements - Run pre-commit during travis CI build - Use a travis build matrix to control when pre-commit runs in the CI process. Use explicit include to only run pre-commit on Python 3.9.
17 lines
376 B
YAML
17 lines
376 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-case-conflict
|
|
- id: check-yaml
|
|
- id: requirements-txt-fixer
|
|
- id: mixed-line-ending
|
|
- id: no-commit-to-branch
|
|
args: [--branch, master]
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.6.0
|
|
hooks:
|
|
- id: black
|