2019-07-13 14:46:47 -05:00
|
|
|
repos:
|
2020-10-19 21:22:37 +05:30
|
|
|
- repo: local
|
2019-07-13 14:46:47 -05:00
|
|
|
hooks:
|
2020-10-19 21:22:37 +05:30
|
|
|
- id: black
|
|
|
|
name: black
|
|
|
|
# this gets run within development environment.
|
|
|
|
# Otherwise will raise command not found or use system level binary
|
2021-05-29 23:44:31 +03:00
|
|
|
entry: black --check xonsh/ xontrib/ tests/
|
2020-10-19 21:22:37 +05:30
|
|
|
language: system
|
2021-05-29 23:44:31 +03:00
|
|
|
stages: [ commit ]
|
2020-10-19 21:22:37 +05:30
|
|
|
types:
|
|
|
|
- python
|
2021-05-27 01:45:34 +05:30
|
|
|
- id: qa
|
|
|
|
name: qa
|
|
|
|
entry: xonsh run-tests.xsh qa
|
|
|
|
language: system
|
|
|
|
stages: [ push ]
|
|
|
|
pass_filenames: false
|
|
|
|
types:
|
|
|
|
- python
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v3.4.0
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-case-conflict
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
|
|
|
|
# Check for debugger imports and py37+ breakpoint() calls in python source.
|
|
|
|
- id: debug-statements
|
|
|
|
|
|
|
|
- id: check-added-large-files
|