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
|
2022-01-08 04:03:22 +05:30
|
|
|
entry: black 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
|
2022-01-31 20:57:51 +05:30
|
|
|
- id: isort
|
|
|
|
name: isort
|
|
|
|
# this gets run within development environment.
|
|
|
|
# Otherwise will raise command not found or use system level binary
|
|
|
|
entry: isort xonsh/ xontrib/ tests/
|
|
|
|
language: system
|
|
|
|
stages: [ commit ]
|
|
|
|
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
|
2022-01-31 20:44:35 +05:30
|
|
|
rev: v4.1.0
|
2021-05-27 01:45:34 +05:30
|
|
|
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
|
2021-12-07 01:12:26 +05:30
|
|
|
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-03-18 11:40:59 +05:30
|
|
|
rev: v2.31.1
|
2021-12-07 01:12:26 +05:30
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py37-plus]
|