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

Fixed pylint errors #644

Merged
merged 37 commits into from
May 26, 2023
Merged

Conversation

mathisrichter
Copy link
Contributor

Issue Number:

Objective of pull request:

Pull request checklist

Your PR fulfills the following requirements:

  • Issue created that explains the change and why it's needed
  • Tests are part of the PR (for bug fixes / features)
  • Docs reviewed and added / updated if needed (for bug fixes / features)
  • PR conforms to Coding Conventions
  • PR applys BSD 3-clause or LGPL2.1+ Licenses to all code files
  • Lint (flakeheaven lint src/lava tests/) and (bandit -r src/lava/.) pass locally
  • Build tests (pytest) passes locally

Pull request type

Please check your PR type:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation changes
  • Other (please describe):

What is the current behavior?

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Supplemental information

@mathisrichter mathisrichter self-assigned this Feb 26, 2023
@mgkwill
Copy link
Contributor

mgkwill commented Mar 8, 2023

I'm not sure if you have fixed all the issues, but I suggest enabling this line to enforce in lint job in CI:

https://github.com/mathisrichter/lava/blob/d5d00632fef9c8adbd4b7a8167074436fec87e71/pyproject.toml#L173

and removing this line: https://github.com/mathisrichter/lava/blob/d5d00632fef9c8adbd4b7a8167074436fec87e71/pyproject.toml#L177

@mgkwill mgkwill self-requested a review March 8, 2023 22:10
@mathisrichter mathisrichter changed the title Fixed various critical pylint errors Fixed pylint errors May 8, 2023
@mathisrichter mathisrichter marked this pull request as ready for review May 19, 2023 17:16
Copy link
Contributor

@weidel-p weidel-p left a comment

Choose a reason for hiding this comment

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

A lot of renaming, nothing too controversial.

@mathisrichter mathisrichter merged commit f061d00 into lava-nc:main May 26, 2023
@mathisrichter mathisrichter deleted the no_argument_methods branch May 26, 2023 22:52
monkin77 pushed a commit to monkin77/thesis-lava that referenced this pull request Jul 12, 2024
* Refactoring methods without arguments into functions.

Signed-off-by: Mathis Richter <[email protected]>

* Raising ValueError instead of str.

Signed-off-by: Mathis Richter <[email protected]>

* Defining members before use.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed pylint error about non-callable variable.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed deprecation warning.

Signed-off-by: Mathis Richter <[email protected]>

* Defined members before use.

Signed-off-by: Mathis Richter <[email protected]>

* Removed unused imports.

Signed-off-by: Mathis Richter <[email protected]>

* Removed unused variables.

Signed-off-by: Mathis Richter <[email protected]>

* Removed unnecessary pass statements.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed attributes defined outside __init__.

Signed-off-by: Mathis Richter <[email protected]>

* Activated linting checks in poetry.

Signed-off-by: Mathis Richter <[email protected]>

* Revert "Refactoring methods without arguments into functions."

This reverts commit 8dc55a3.

* Deactivated flake8 plugins for now.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed shadowing of built-in variable names.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed reimported modules.

Signed-off-by: Mathis Richter <[email protected]>

* Explicitly disabling plugins again.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed pointless string statement errors.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed linter errors for abstract methods.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed renamed arguments.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed calling init method of non-parent class.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed unit tests.

Signed-off-by: Mathis Richter <[email protected]>

* Ignored linter errors with subprocess module.

Signed-off-by: Mathis Richter <[email protected]>

* Ignored linter error about renamed variable.

Signed-off-by: Mathis Richter <[email protected]>

* Added a description on linter ignore.

Signed-off-by: Mathis Richter <[email protected]>

* Ignored arguments-differ linter error.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed unused-variable linter error.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed linter errors.

Signed-off-by: Mathis Richter <[email protected]>

* Reverted linter changes in runtime to fix unit tests in lava-loihi.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed remark issues in Markdown files.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed remark issues in Markdown files.

Signed-off-by: Mathis Richter <[email protected]>

* Fixed remark issues in Markdown files.

Signed-off-by: Mathis Richter <[email protected]>

---------

Signed-off-by: Mathis Richter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants