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

Activate pyflakes check #530

Merged
merged 1 commit into from
Mar 8, 2023
Merged

Activate pyflakes check #530

merged 1 commit into from
Mar 8, 2023

Conversation

zariiii9003
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Mar 2, 2023

Pull Request Test Coverage Report for Build 4359318064

  • 12 of 12 (100.0%) changed or added relevant lines in 6 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.0008%) to 94.063%

Files with Coverage Reduction New Missed Lines %
cantools/database/can/formats/dbc.py 1 98.28%
Totals Coverage Status
Change from base Build 4354105423: -0.0008%
Covered Lines: 7034
Relevant Lines: 7478

💛 - Coveralls

@@ -1796,16 +1794,16 @@ def _load_linear_scale(self, compu_scale, decimal):
if lower_limit is not None and \
upper_limit is not None and \
lower_limit > upper_limit:
LOGGER.warning(f'An valid interval should be provided for '
Copy link
Member

@andlaus andlaus Mar 2, 2023

Choose a reason for hiding this comment

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

can we disable F541? I'd like to be able to use F-strings even in situations where nothing is formatted...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's weird but it should be possible. Are you sure? 😄

Copy link
Member

Choose a reason for hiding this comment

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

Are you sure?

quite: IMO, having to use two different kinds of strings for things like

print(f"there is a problem ({id=}) with whatever stupid thing I wanted to do "
      f"and this needs to be fixed before we can proceed because if not, "
      f"world #{world_id} is gonna end")

looks pretty weird...

(also, I like to use f-strings for stuff which could potentially include formatting even if they do not at the moment.)

I'm not hell-bent on that matter, though, so if you really want F541, let's keep it active...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't have a strong opinion about that one. I'll make the change and force push.

@andlaus
Copy link
Member

andlaus commented Mar 8, 2023

going in. thanks!

@andlaus andlaus merged commit df21fe3 into cantools:master Mar 8, 2023
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.

None yet

3 participants