2021-08-02 19:48:22 +02:00
|
|
|
repos:
|
2021-11-09 19:57:40 +01:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
2022-03-25 17:28:06 +01:00
|
|
|
- id: check-sql
|
|
|
|
name: Validate SQL statements
|
2022-12-08 03:49:46 +01:00
|
|
|
entry: python3 -m tests.check_sql_statements
|
2022-03-25 17:28:06 +01:00
|
|
|
language: python
|
|
|
|
pass_filenames: false
|
2021-12-17 03:52:46 +01:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: init_py_files
|
|
|
|
name: __init__.py files
|
|
|
|
entry: python3 tests/build-init-files.py -v --root .
|
|
|
|
language: python
|
|
|
|
pass_filenames: false
|
|
|
|
additional_dependencies: [click~=7.1]
|
2022-08-10 01:23:52 +02:00
|
|
|
- repo: https://github.com/psf/black
|
2023-04-04 19:50:58 +02:00
|
|
|
rev: 23.3.0
|
2022-08-10 01:23:52 +02:00
|
|
|
hooks:
|
|
|
|
- id: black
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-08-16 10:32:53 +02:00
|
|
|
rev: v4.3.0
|
2022-08-10 01:23:52 +02:00
|
|
|
hooks:
|
|
|
|
- id: check-yaml
|
2023-05-03 07:29:31 +02:00
|
|
|
- id: mixed-line-ending
|
|
|
|
args: ["--fix=lf"]
|
2022-08-10 01:23:52 +02:00
|
|
|
- id: end-of-file-fixer
|
2023-04-18 18:27:17 +02:00
|
|
|
exclude: ".*?(.hex|.clsp|.clvm|.clib)"
|
2022-08-10 01:23:52 +02:00
|
|
|
- id: trailing-whitespace
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: check-ast
|
|
|
|
- id: debug-statements
|
2022-09-12 23:08:55 +02:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: clvm_hex
|
2023-04-18 18:27:17 +02:00
|
|
|
name: .clsp.hex files
|
2022-09-27 18:21:54 +02:00
|
|
|
entry: ./activated.py python tools/manage_clvm.py check
|
2022-09-12 23:08:55 +02:00
|
|
|
language: python
|
|
|
|
pass_filenames: false
|
2023-05-09 21:46:41 +02:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: chialispp
|
|
|
|
name: Pretty print chialisp files
|
|
|
|
entry: ./activated.py python tools/chialispp.py .
|
|
|
|
language: python
|
|
|
|
pass_filenames: false
|
2023-05-22 23:50:13 +02:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: build mypy.ini
|
|
|
|
name: build mypy.ini
|
|
|
|
entry: ./activated.py python manage-mypy.py build-mypy-ini
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2022-08-10 01:23:52 +02:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: mypy
|
|
|
|
name: mypy
|
|
|
|
entry: ./activated.py mypy
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2022-02-15 16:28:53 +01:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: isort
|
2023-05-17 17:53:02 +02:00
|
|
|
entry: ./activated.py isort .
|
|
|
|
language: system
|
|
|
|
pass_filenames: false
|
2022-11-15 21:30:05 +01:00
|
|
|
- repo: https://github.com/pycqa/flake8
|
2022-08-16 07:25:40 +02:00
|
|
|
rev: 5.0.4
|
2021-08-02 19:48:22 +02:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|