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

Linter fixes #45

Merged
merged 1 commit into from
Nov 12, 2019
Merged

Linter fixes #45

merged 1 commit into from
Nov 12, 2019

Conversation

bmorcos
Copy link
Contributor

@bmorcos bmorcos commented Nov 7, 2019

Motivation and context:

We want NengoFPGA to be pure with no ignored linter/style errors!

Interactions with other PRs:

Will need to be rebased on #44 but that should be straightforward

How has this been tested?

Tested functional changes using the examples, I didn't hit every logger line (modified for logger-not-lazy), but that is pretty safe I think.

How long should this take to review?

  • Average (neither quick nor lengthy)

Where should a reviewer start?

Most involved changes were definitely the function too complex mods in the 3rd commit, take a look at that more in depth... everything else should be minor style changes.

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have read the CONTRIBUTING.rst document.
  • N/A I have updated the documentation accordingly.
  • I have included a changelog entry.
  • I have tested this with all supported devices.
  • N/A I have added tests to cover my changes.
  • N/A I have run the test suite locally and all tests passed.

docs/examples/gui/02-RL_demo.py Outdated Show resolved Hide resolved
docs/examples/gui/02-RL_demo.py Show resolved Hide resolved
docs/examples/gui/02-RL_demo.py Outdated Show resolved Hide resolved
nengo_fpga/networks/fpga_pes_ensemble_network.py Outdated Show resolved Hide resolved
Copy link
Member

@xchoo xchoo left a comment

Choose a reason for hiding this comment

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

Minor changes to the LearnActive class.

docs/examples/gui/02-RL_demo.py Outdated Show resolved Hide resolved
docs/examples/gui/02-RL_demo.py Outdated Show resolved Hide resolved
docs/examples/gui/02-RL_demo.py Outdated Show resolved Hide resolved
- Upgrade to Bones 0.7.0
- fpga_pes_ensemble_network:
  - Changed default socket_args (W0102: dangerous-default-value)
  - Fixed logger args (W1201: logger-not-lazy)
  - C901: too complex:
    - Break out function to determine output dim on init
    - Break out function to validate network params in builder
    - Break out function for ssh authorization and connection
    - Break out function for ssh error handling
- 00-mnist_vision_network.py:
  - Change arg names for resize_img func
    (W0621: redefined-outer-name)
- 01-adaptive_pendulum.py:
  - Stop using locals() in string formatting
    (W0641: possibly-unused-variable)
- 02-RL_demo.py:
  - Create a local page variable (E0602: undefined-variable)
  - Create local world_cfg variables (W0621: redefined-outer-name)
    (W0102: dangerous-default-value)
  - Add dictionary to process keyboard inputs (C901: too complex)
  - Create class to store persistent learning state
- grid.py (originally entire file was ignored):
  - R0205: useless-object-inheritance
  - W0611: unused-import
  - Add returns to all branches in go_torward and save funcs
    (R1710: inconsistent-return-statements)
  - Replace builtin file func with open (E0602: undefined-variable)
- id_extractor.py:
  - Break out function for ssh authorization and connection
    (C901: too complex)
@bmorcos bmorcos merged commit a32cd93 into master Nov 12, 2019
@bmorcos bmorcos deleted the linter-fixes branch November 12, 2019 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants