-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unexpected exception: int object expected; got str #59
Comments
This patch adds flakeheaven with a baseline, the baseline ignores all existing errors and only reports on new errors. The benefit with this approach is that we can get full flake8 on new changes without having to first address the flake8 warnings with our existing codebase. Baselined errors can still be seen with: - flakeheaven lint --baseline /dev/null` - `flake8` This also adds a flakeheaven to GitHub Actions in a way which will result in independent reporting. Other changes: - Simplified caching behaviour in GitHub Actions - Removed flake8-black because it does not work well peterjc/flake8-black#59
This patch adds flakeheaven with a baseline, the baseline ignores all existing errors and only reports on new errors. The benefit with this approach is that we can get full flake8 on new changes without having to first address the flake8 warnings with our existing codebase. Baselined errors can still be seen with: - `flakeheaven lint --baseline /dev/null` - `flake8` This also adds a flakeheaven to GitHub Actions in a way which will result in independent reporting. Other changes: - Simplified caching behaviour in GitHub Actions - Removed flake8-black because it does not work well peterjc/flake8-black#59 - Remove redundant/duplicated config for flake8
This patch adds flakeheaven with a baseline, the baseline ignores all existing errors and only reports on new errors. The benefit with this approach is that we can get full flake8 on new changes without having to first address the flake8 warnings with our existing codebase. Baselined errors can still be seen with: - `flakeheaven lint --baseline /dev/null` - `flake8` This also adds a flakeheaven to GitHub Actions in a way which will result in independent reporting. Other changes: - Simplified caching behaviour in GitHub Actions - Removed flake8-black because it does not work well peterjc/flake8-black#59 - Remove redundant/duplicated config for flake8
This patch adds flakeheaven with a baseline, the baseline ignores all existing errors and only reports on new errors. The benefit with this approach is that we can get full flake8 on new changes without having to first address the flake8 warnings with our existing codebase. Baselined errors can still be seen with: - `flakeheaven lint --baseline /dev/null` - `flake8` This also adds a flakeheaven to GitHub Actions in a way which will result in independent reporting. Other changes: - Simplified caching behaviour in GitHub Actions - Removed flake8-black because it does not work well peterjc/flake8-black#59 - Remove redundant/duplicated config for flake8
Ah yes, you raised this on #47 but we never managed to reproduce this. Can you confirm which version of black you have installed? |
$ black --version
black, 22.3.0 (compiled: yes) This problem confirmed to happen in not only my environment but also other people's ones... |
Good news - I can reproduce that on macOS with Python 3.8, so not OS nor Python version specific:
Disabling my error catching,
I'll get back to this later - but am optimistic about fixing this now. Thanks! |
This patch adds flakeheaven with a baseline, the baseline ignores all existing errors and only reports on new errors. The benefit with this approach is that we can get full flake8 on new changes without having to first address the flake8 warnings with our existing codebase. Baselined errors can still be seen with: - `flakeheaven lint --baseline /dev/null` - `flake8` This also adds a flakeheaven to GitHub Actions in a way which will result in independent reporting. Other changes: - Simplified caching behaviour in GitHub Actions - Removed flake8-black because it does not work well peterjc/flake8-black#59 - Remove redundant/duplicated config for flake8
* Enable and baseline flakeheaven This patch adds flakeheaven with a baseline, the baseline ignores all existing errors and only reports on new errors. The benefit with this approach is that we can get full flake8 on new changes without having to first address the flake8 warnings with our existing codebase. Baselined errors can still be seen with: - `flakeheaven lint --baseline /dev/null` - `flake8` This also adds a flakeheaven to GitHub Actions in a way which will result in independent reporting. Other changes: - Simplified caching behaviour in GitHub Actions - Removed flake8-black because it does not work well peterjc/flake8-black#59 - Remove redundant/duplicated config for flake8 Co-authored-by: Christian Clauss <cclauss@me.com>
Also breaks with black 22.1.0, and I have a work around for you:
It looks like your TOML has line-length defined as a string, which I am passing to black as is when black wants and integer. |
Release v0.3.3 should fix this. Thank you for the reproducible example, incredibly helpful. |
ref: #47, RDFLib/rdflib#1927 (comment)
when I use flake8-black in rdflib,
rdflib/***.py:0:1: BLK999 Unexpected exception: int object expected; got str
is raised 89 times.The text was updated successfully, but these errors were encountered: