您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
33 行
1011 B
33 行
1011 B
repos:
|
|
- repo: https://github.com/python/black
|
|
rev: '19.3b0'
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: 'v0.701'
|
|
hooks:
|
|
- id: mypy
|
|
name: mypy-ml-agents
|
|
files: "ml-agents/.*"
|
|
args: [--ignore-missing-imports, --disallow-incomplete-defs]
|
|
- id: mypy
|
|
name: mypy-ml-agents-envs
|
|
files: "ml-agents-envs/.*"
|
|
# Exclude protobuf files and don't follow them when imported
|
|
exclude: ".*_pb2.py"
|
|
# TODO get disallow-incomplete-defs working
|
|
args: [--ignore-missing-imports, --follow-imports=silent]
|
|
- id: mypy
|
|
name: mypy-gym-unity
|
|
files: "gym-unity/.*"
|
|
args: [--ignore-missing-imports, --disallow-incomplete-defs]
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v2.2.3
|
|
hooks:
|
|
- id: mixed-line-ending
|
|
exclude: >
|
|
(?x)^(
|
|
.*cs.meta|
|
|
.*.css
|
|
)$
|
|
args: [--fix=lf]
|