-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2380 from Unity-Technologies/release-0.9.0
Release v0.9.0
- Loading branch information
Showing
312 changed files
with
10,560 additions
and
2,657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
repos: | ||
- repo: https://github.com/python/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.720 | ||
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] | ||
- id: flake8 | ||
exclude: > | ||
(?x)^( | ||
.*_pb2.py| | ||
.*_pb2_grpc.py | ||
)$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,22 @@ the platform, and provide a unique non-trivial challenge to modern | |
machine learning algorithms. Feel free to submit these environments with a | ||
PR explaining the nature of the environment and task. | ||
|
||
## Style Guide | ||
## Continuous Integration (CI) | ||
|
||
When performing changes to the codebase, please ensure that all python code is reformatted using the [black](https://github.com/ambv/black) formatter. For C#, we will soon be requirements for style and formatting. | ||
We run CircleCI on all PRs; all tests must be passing before the PR is merged. | ||
|
||
Several static checks are run on the codebase using the [pre-commit framework](https://pre-commit.com/) during CI. To execute the same checks locally, install `pre-commit` and run `pre-commit run --all-files`. Some hooks (for example, `black`) will output the corrected version of the code; others (like `mypy`) may require more effort to fix. | ||
|
||
### Code style | ||
All python code should be formatted with [`black`](https://github.com/ambv/black). Style and formatting for C# may be enforced later. | ||
|
||
### Python type annotations | ||
We use [`mypy`](http://mypy-lang.org/) to perform static type checking on python code. Currently not all code is annotated but we will increase coverage over time. If you are adding or refactoring code, please | ||
1. Add type annotations to the new or refactored code. | ||
2. Make sure that code calling or called by the modified code also has type annotations. | ||
|
||
The [type hint cheat sheet](https://mypy.readthedocs.io/en/stable/cheat_sheet_py3.html) provides a good introduction to adding type hints. | ||
|
||
## Contributor License Agreements | ||
|
||
When you open a pull request, you will be asked to acknolwedge our Contributor License Agreement. We allow both individual contributions and contributions made on behalf of companies. We use an open source tool called CLA assistant. If you have any questions on our CLA, please [submit an issue](https://github.com/Unity-Technologies/ml-agents/issues) or email us at [email protected]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ developer communities. | |
* 10+ sample Unity environments | ||
* Support for multiple environment configurations and training scenarios | ||
* Train memory-enhanced agents using deep reinforcement learning | ||
* Easily definable Curriculum Learning scenarios | ||
* Easily definable Curriculum Learning and Generalization scenarios | ||
* Broadcasting of agent behavior for supervised learning | ||
* Built-in support for Imitation Learning | ||
* Flexible agent control with On Demand Decision Making | ||
|
@@ -77,11 +77,11 @@ If you run into any problems using the ML-Agents toolkit, | |
[submit an issue](https://github.com/Unity-Technologies/ml-agents/issues) and | ||
make sure to include as much detail as possible. | ||
|
||
Your opinion matters a great deal to us. Only by hearing your thoughts on the Unity ML-Agents Toolkit can we continue to improve and grow. Please take a few minutes to [let us know about it](https://github.com/Unity-Technologies/ml-agents/issues/1454). | ||
Your opinion matters a great deal to us. Only by hearing your thoughts on the Unity ML-Agents Toolkit can we continue to improve and grow. Please take a few minutes to [let us know about it](https://github.com/Unity-Technologies/ml-agents/issues/1454). | ||
|
||
|
||
For any other questions or feedback, connect directly with the ML-Agents | ||
team at [email protected]. | ||
team at [email protected]. | ||
|
||
## Translations | ||
|
||
|
@@ -93,6 +93,7 @@ translating more pages and to other languages. Consequently, | |
we welcome any enhancements and improvements from the community. | ||
|
||
* [Chinese](docs/localized/zh-CN/) | ||
* [Korean](docs/localized/KR/) | ||
|
||
## License | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.