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

Flake8v3 #139

Closed
wants to merge 7 commits into from
Closed

Flake8v3 #139

wants to merge 7 commits into from

Conversation

cadenmyers13
Copy link
Contributor

@cadenmyers13 cadenmyers13 commented Jul 29, 2024

This branch passes all tests

@cadenmyers13 cadenmyers13 changed the title Flake8 v3 Flake8v3 Jul 29, 2024
Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

please see the inline comment. Most of these lamdas -> functions should be private actually, if you could quickly refactor them all.

@@ -288,18 +300,26 @@ def onDelete(self, event): # wxGlade: TemperatureSeriesPanel.<event_handler>
self.fillList()
return

def create_filename_order(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you wrapping this in a function? It doesn't seem like it needs to be.

self.filename_order = dict(zip(filenames, range(len(filenames))))
return

def filename_sortkey(self, tf):
Copy link
Contributor

Choose a reason for hiding this comment

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

when we do turn lambdas into functions, mostly they should be private functions (just put an underscore at the beginning of the name).

@sbillinge
Copy link
Contributor

closing. Fixed by #141 and #142

@sbillinge sbillinge closed this Jul 31, 2024
@cadenmyers13 cadenmyers13 deleted the flake8v3fix branch July 31, 2024 16:20
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.

2 participants