AnnaMats/ppo-Pyramids-Training
0110
1repos:2- repo: https://github.com/python/black3 rev: 22.3.04 hooks:5 - id: black6 exclude: >7 (?x)^(8 .*_pb2.py|9 .*_pb2.pyi|10 .*_pb2_grpc.py11 )$12 13- repo: https://github.com/pre-commit/mirrors-mypy14 rev: v0.99115 hooks:16 - id: mypy17 name: mypy-ml-agents18 files: "ml-agents/.*"19 args: [--ignore-missing-imports, --disallow-incomplete-defs, --no-strict-optional]20 additional_dependencies: [types-PyYAML, types-attrs, types-protobuf, types-setuptools, types-filelock]21 - id: mypy22 name: mypy-ml-agents-envs23 files: "ml-agents-envs/.*"24 # Exclude protobuf files and don't follow them when imported25 exclude: ".*_pb2.py"26 args: [--ignore-missing-imports, --disallow-incomplete-defs, --no-strict-optional]27 additional_dependencies: [types-PyYAML, types-attrs, types-protobuf, types-setuptools, types-filelock]28- repo: https://github.com/PyCQA/flake829 rev: 3.9.230 hooks:31 - id: flake832 exclude: >33 (?x)^(34 .*_pb2.py|35 .*_pb2_grpc.py36 )$37 # flake8-tidy-imports is used for banned-modules, not actually tidying38 additional_dependencies: [flake8-comprehensions==3.2.2, flake8-tidy-imports==4.1.0, flake8-bugbear==20.1.4]39 40- repo: https://github.com/asottile/pyupgrade41 rev: v2.31.042 hooks:43 - id: pyupgrade44 args: [--py3-plus, --py36-plus]45 exclude: >46 (?x)^(47 .*_pb2.py|48 .*_pb2_grpc.py49 )$50 51- repo: https://github.com/pre-commit/pre-commit-hooks52 rev: v4.1.053 hooks:54 - id: mixed-line-ending55 exclude: >56 (?x)^(57 .*cs.meta|58 .*.css|59 .*.meta60 )$61 args: [--fix=lf]62 63 - id: trailing-whitespace64 name: trailing-whitespace-markdown65 types: [markdown]66 - id: check-merge-conflict67 args: [--assume-in-merge]68 - id: check-yaml69 # Won't handle the templating in yamato70 exclude: \.yamato/.*71 72- repo: https://github.com/pre-commit/pygrep-hooks73 rev: v1.9.074 hooks:75 - id: python-check-mock-methods76 77- repo: https://github.com/mattlqx/pre-commit-search-and-replace78 rev: v1.0.579 hooks:80 - id: search-and-replace81 types: [markdown]82 exclude: ".*localized.*"83 84#- repo: https://github.com/dotnet/format85# rev: v5.1.22550786# hooks:87# - id: dotnet-format88# entry: dotnet-format whitespace89# args: [--folder, --include]90 91# "Local" hooks, see https://pre-commit.com/#repository-local-hooks92- repo: local93 hooks:94 - id: dotnet-format95 name: dotnet-format96 language: system97 entry: dotnet format whitespace --folder --include98 types_or: ["c#"]99 - id: markdown-link-check100 name: markdown-link-check101 entry: utils/run_markdown_link_check.py102 language: script103 types: [markdown]104 # Don't check localized files since their target might not be localized.105 exclude: ".*localized.*"106 # Only run manually, e.g. pre-commit run --hook-stage manual markdown-link-check107 stages: [manual]108 - id: markdown-link-check-full109 name: markdown-link-check-full110 entry: utils/run_markdown_link_check.py111 language: script112 types: [markdown]113 # Don't check localized files since their target might not be localized.114 exclude: ".*localized.*"115 # Only run manually, e.g. pre-commit run --hook-stage manual markdown-link-check-full116 stages: [manual]117 args: [--check-remote]118 - id: validate-versions119 name: validate library versions120 language: script121 entry: utils/validate_versions.py122 files: ".*/__init__.py"123 - id: validate-init-py124 name: validate __init__.py files125 language: script126 entry: utils/validate_inits.py127 types: [python]128 - id: validate-release-links-py129 name: validate release links130 language: script131 entry: utils/validate_release_links.py132 require_serial: true133 - id: generate-markdown-docs134 name: generate markdown docs135 language: python136 entry: ./utils/generate_markdown_docs.py --package_dirs ml-agents-envs ml-agents137 pass_filenames: false138 additional_dependencies: [pyyaml, pydoc-markdown==3.10.1]139 