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

Updated flake version to fix incorrect flake error E231 #28

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

bwintermann
Copy link

As the title says, flake incorrectly flags fstrings such as:

s = f"{a}:1:{b}"

with an E231 error which requires you to insert whitespaces around : , ; etc.
This only occurs in Python 3.12 and below flake 6.1.0 apparently. FINN currently is on Python 3.10 but we still might want to fix this beforehand or if anyone uses a 3.12 dev environment.

@fpjentzsch
Copy link

Seems like this caused a new type of error to appear:

src/finn/util/data_packing.py:62:8: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()

@bwintermann
Copy link
Author

Fixed.

@LinusJungemann
Copy link
Member

Looks good to me.

@bwintermann
Copy link
Author

@fpjentzsch @iksnagreb Are you fine with too? Then I'd merge.

@iksnagreb
Copy link

Looks good. Could you maybe propose this as PR to xilinx/finn as well? I do not want to adhere to two different linting/style rule sets depending on where I PR to...

@fpjentzsch fpjentzsch merged commit bf014cc into dev Jan 28, 2025
1 check passed
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