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

Fix flake8 warnings #97

Merged
merged 9 commits into from
Oct 23, 2023
Merged

Conversation

MattKing06
Copy link
Collaborator

@MattKing06 MattKing06 commented Oct 23, 2023

Summary of Changes

Most of the changes include reformatting or removing unused variable/imports.
I have added a .flake8 file that allows the errors/warnings to be configured. For example, there is an allowable line-length that is configured in that file to be 120 (PyCharm default), as well as ignoring some other warnings.

To Check

  • Check out this branch (96_fix_flake8_warnings) in your local repository
  • Install flake8 (python3 -m pip install flake8) if you do not already have it
  • Run flake8 . in the lcls-tools repository
  • There should be no output from this command.

Other notes

The first stage of the pipeline should pass after these changes have been merged and we can move onto fixing the unit-tests.

closes #96

Copy link
Collaborator

@lisazacarias lisazacarias left a comment

Choose a reason for hiding this comment

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

Thanks for all this hard work!

Copy link
Member

@nneveu nneveu left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -0,0 +1,36 @@
#!/usr/local/lcls/package/python/current/bin/python
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need this file?

@nneveu nneveu merged commit 24e0695 into slaclab:main Oct 23, 2023
1 check failed
@nneveu
Copy link
Member

nneveu commented Oct 23, 2023

🥳 🍾 🎆

@MattKing06 MattKing06 deleted the 96_fix_flake8_warnings branch November 27, 2023 20:51
Derikka pushed a commit to Derikka/lcls-tools that referenced this pull request Mar 17, 2024
* ignore too many hashes for block-comment, and contraversial line break before binary operator

* flake8 fixes

* remove lambda for flake8

* changing unittest command, change from python-app to python-package workflow.

* add requirements for workflow install step

* make callback a callable for test to pass

* add exception for line-length

* remove unnecessary file

---------

Co-authored-by: matt <matt@SLACMachine.myguest.virtualbox.org>
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.

Clean up Flake8 Errors/Warnings
3 participants