FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Flake8v3 by cadenmyers13 · Pull Request #139 · diffpy/diffpy.pdfgui · GitHub

Repository navigation

Flake8v3 - #139

Closed
cadenmyers13 wants to merge 7 commits into
diffpy:cookiefrom
cadenmyers13:flake8v3fix
Closed

cadenmyers13 wants to merge 7 commits into
diffpy:cookiefrom
cadenmyers13:flake8v3fix

Conversation

cadenmyers13 commented Jul 29, 2024 •
edited
Loading

Copy link
Copy Markdown
Contributor

This branch passes all tests

cadenmyers13 changed the title Flake8 v3 Flake8v3 Jul 29, 2024

sbillinge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

self.fillList()
return

def create_filename_order(self):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Copy link
Copy Markdown
Contributor

closing. Fixed by #141 and #142

sbillinge closed this Jul 31, 2024
cadenmyers13 deleted the flake8v3fix branch July 31, 2024 16:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL