Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update precommit flake8 #3961

Merged
merged 3 commits into from
May 13, 2020
Merged

Update precommit flake8 #3961

merged 3 commits into from
May 13, 2020

Conversation

chriselion
Copy link
Contributor

Proposed change(s)

Update to the latest version of the flake8 hook, and fix a few issues that crept in recently (still not quite sure what changed, maybe new version of pycodestyle).

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@@ -27,8 +27,20 @@ repos:
files: "gym-unity/.*"
args: [--ignore-missing-imports, --disallow-incomplete-defs]

- repo: https://gitlab.com/pycqa/flake8
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.*_pb2_grpc.py
)$
# flake8-tidy-imports is used for banned-modules, not actually tidying
additional_dependencies: [flake8-comprehensions==3.2.2, flake8-tidy-imports==4.1.0, flake8-bugbear==20.1.4]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also updated the versions of these (no new errors)

@@ -203,9 +203,9 @@ def _update_policy(self):
self.update_buffer.shuffle(sequence_length=self.policy.sequence_length)
buffer = self.update_buffer
max_num_batch = buffer_length // batch_size
for l in range(0, max_num_batch * batch_size, batch_size):
for i in range(0, max_num_batch * batch_size, batch_size):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out this warning specifically warns about l, I, and O.

@chriselion chriselion requested a review from vincentpierre May 13, 2020 17:41
Copy link
Contributor

@vincentpierre vincentpierre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this need to be updated the next time flake8 gets a new deprecation ?

@chriselion
Copy link
Contributor Author

I'm still unclear on exactly what changed. I think the deprecation is incidental (it happened on Feb 4), and it wasn't flake8 that got deprecated, just the hook (the hook is now in the same repo as the actual package).

@chriselion chriselion merged commit 2e5a36c into master May 13, 2020
@delete-merged-branch delete-merged-branch bot deleted the update-precommit-flake8 branch May 13, 2020 17:58
chriselion pushed a commit that referenced this pull request May 15, 2020
* fix flake8 errors

* update flake8 hook

* update flake8 plugins
chriselion pushed a commit that referenced this pull request May 15, 2020
* update versions for patch releae

* Update precommit flake8 (#3961)

* fix changelog
chriselion pushed a commit that referenced this pull request May 21, 2020
* update versions for patch release (#3970)

* update versions for patch releae

* Update precommit flake8 (#3961)

* fix changelog

* Release 2 cherry pick (#3971)

* [bug-fix] Fix issue with initialize not resetting step count (#3962)

* Develop better error message for #3953 (#3963)

* Making the error for wrong number of agents raise consistently

* Better error message for inputs of wrong dimensions

* Fix #3932, stop the editor from going into a loop when a prefab is selected. (#3949)

* Minor doc updates to release

* add unit tests and fix exceptions (#3930)

Co-authored-by: Ervin T <ervin@unity3d.com>
Co-authored-by: Vincent-Pierre BERGES <vincentpierre@unity3d.com>
Co-authored-by: Chris Goy <christopherg@unity3d.com>

* update changelog (#3975)

* [docs] Add memory_size hyperparameter (#3973)

* Release 2 docs (#3976)

* Add v1.0 blog post and update reference paper. (#3947)

* Develop mm fix readme releases (#3966)

* Fix broken link and clean-up Releases section.

* Updated link to be consistent with the table.

* Update one of the bullets for consistency.

* update table, add Versioning doc

* release_2_docs

Co-authored-by: Marwan Mattar <marwan@unity3d.com>

* update barracuda to 0.7.1 (#3977)

* Wrong variable naming in code example (#3983) (#3988)

Co-authored-by: Sebastian Schuchmann <schuchmannsebastian@gmail.com>

* Fix barracuda version in changelog

* [docs] Add missing config and make sure to use floats in example (#3989)

* Add missing config and make sure to use floats in example

* Moved init_path

* fix typo in log message (#3987)

* Fix Barracuda assembly reference. (#3994)

* fix missing metafile (#3999)

* add missing metafile, change package to 1.0.2

* changelog

* undo DevProject

* Update make_readme_table.py

* reapply markdown config file changes

* fix release_1 references (#4001)

Co-authored-by: Ervin T <ervin@unity3d.com>
Co-authored-by: Vincent-Pierre BERGES <vincentpierre@unity3d.com>
Co-authored-by: Chris Goy <christopherg@unity3d.com>
Co-authored-by: Marwan Mattar <marwan@unity3d.com>
Co-authored-by: Sebastian Schuchmann <schuchmannsebastian@gmail.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants