2022-10-02 17:57:45 +02:00
|
|
|
---
|
|
|
|
repos:
|
|
|
|
# - repo: local
|
|
|
|
# hooks:
|
|
|
|
# - id: mypy
|
|
|
|
# name: mypy
|
|
|
|
# entry: mypy
|
|
|
|
# language: python
|
|
|
|
# pass_filenames: false
|
|
|
|
# args: [--config-file=setup.cfg, tianshou]
|
|
|
|
|
2022-12-04 22:00:53 +01:00
|
|
|
- repo: https://github.com/google/yapf
|
2022-10-02 17:57:45 +02:00
|
|
|
rev: v0.32.0
|
|
|
|
hooks:
|
|
|
|
- id: yapf
|
2022-12-04 22:00:53 +01:00
|
|
|
args: [-r, -i]
|
2022-10-02 17:57:45 +02:00
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
|
|
rev: 5.10.1
|
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: isort
|
|
|
|
|
2022-12-04 22:00:53 +01:00
|
|
|
- repo: https://github.com/PyCQA/flake8
|
2022-10-02 17:57:45 +02:00
|
|
|
rev: 4.0.1
|
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
args: [--config=setup.cfg, --count, --show-source, --statistics]
|
|
|
|
additional_dependencies: ["flake8_bugbear"]
|
|
|
|
|
|
|
|
- repo: https://github.com/pycqa/pydocstyle
|
|
|
|
rev: 6.1.1
|
|
|
|
hooks:
|
|
|
|
- id: pydocstyle
|
|
|
|
exclude: ^(test/)|(docs/)|(examples/)|(setup.py)
|