-
Notifications
You must be signed in to change notification settings - Fork 235
Replace flake8 with flakeheaven #1847
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
Changes from 3 commits
b44aa89
f72c23b
2e6495c
942135b
5801dd2
7c07908
61fb34f
4f85ca4
30a9267
b34bb1c
7b32a52
6822d87
7dd65fa
80e6895
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,12 @@ fallback_version = "unknown" | |
| [tool.coverage.run] | ||
| omit = ["*/tests/*", "*pygmt/__init__.py"] | ||
|
|
||
| [tool.flakeheaven] | ||
| ignore = ["E203", "E266", "E501", "W503", "F401", "E741"] | ||
|
||
| max_line_length = 88 | ||
| max-doc-length = 79 | ||
weiji14 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| show_source = true | ||
|
|
||
| [tool.pytest.ini_options] | ||
| minversion = "6.0" | ||
| addopts = "--verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results" | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can someone try and test this properly? I'm struggling to find a way to get this to fail for some reason, so need to check that it's actually doing something 😅
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I installed a fresh conda virtual environment using the
environment.ymlin this branch and tried a simple command likeflakeheaven lint --max-doc-length 9 pygmt/src/basemap.pywhich should fail, but no error was thrown. My guess is there's something broken inflakeheaven.Edit: Seems to be fixed in
flakeheaven=2.0.0🎉