Files
anybadge/.pre-commit-config.yaml
Jon Grace-Cox 56a1935ff0 Add pre-commit config and apply changes
- 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.
2022-08-08 15:59:33 -07:00

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