question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

flake8 ignore configuration

See original GitHub issue

I was wondering whether there is a good motivation for the flake8 ignore settings and whether people would be open to use the flake8 defaults instead, or maybe a smaller set of ignores instead.

I am aware this is a bit of a bikeshedding issue, but I think that this is better to discuss this when the project is young than later down the line.

I ran flake8 with the default settings and there are eight flake8 violations which are super easy to fix (if you are curious the winner is E265 block comment should start with '# ' which to me is not very controversial).

I had a quick look and from what I can tell, the flake8 ignore settings of some projects in the dask organization projects are copied from the dask/dask one. I found this was introduced in https://github.com/dask/dask/pull/1464 and it does not look like there is a strong motivated reason behind it. Some projects have drifted a bit off like dask-ml and dask-kubernetes.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mrocklincommented, Apr 18, 2018

No strong thoughts from me personally.

I think that style settings should be determined by people who tend to maintain the project. In this case that seems to be you @lesteve (along with others like @jhamman and @jakirkham) so your preferences should probably determine what this project does in regards to style.

Changing style in dask/dask or dask/distributed is also doable but will likely require more discussion. If that is your goal (which seems reasonable for consistency) then I recommend raising an issue on the dask/dask issue tracker.

On Wed, Apr 18, 2018 at 3:49 AM, Loïc Estève notifications@github.com wrote:

I was wondering whether there is a good motivation for the flake8 ignore settings and whether people would be open to use the flake8 defaults instead, or maybe a smaller set of ignores instead.

I am aware this is a bit of a bikeshedding issue, but I think that this is better to discuss this when the project is young than later down the line.

I ran flake8 with the default settings and there are eight flake8 violations which are super easy to fix (if you are curious the winner is E265 block comment should start with '# ’ which to me is not very controversial).

I had a quick look and from what I can tell, the flake8 ignore settings of some projects in the dask organization projects are copied from the dask/dask one. I found this was introduced in dask/dask#1464 https://github.com/dask/dask/pull/1464 and it does not look like there is a strong motivated reason behind it. Some projects have drifted a bit off like dask-ml and dask-kubernetes.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dask/dask-jobqueue/issues/38, or mute the thread https://github.com/notifications/unsubscribe-auth/AASszH_LZy31VJo3rVQzn0Pe_E0cWdMuks5tpvALgaJpZM4TZlM_ .

0reactions
guillaumeebcommented, Apr 20, 2018

If there is no dask standard config, my point of view is to stick with flake8 default one, adding exceptions only when necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Flake8 — flake8 6.0.0 documentation
Flake8 supports storing its configuration in your project in one of setup.cfg , tox.ini , or .flake8 . Values set at the command...
Read more >
Ignoring Errors with Flake8 — flake8 3.1.1 documentation
Ignoring Errors with Flake8¶. By default, Flake8 has a list of error codes that it ignores. The list used by a version of...
Read more >
Configuration — flake8 2.5.5 documentation
Settings¶ · exclude : comma-separated filename and glob patterns default: . · filename : comma-separated filename and glob patterns default: *. · select...
Read more >
Configuring Flake8 — flake8 3.1.1 documentation
Flake8 allows a user to use “global” configuration file to store preferences. The user configuration file is expected to be stored somewhere in...
Read more >
Full Listing of Options and Their Descriptions - Flake8
This can be specified in config files. Example config file usage: extend-exclude = legacy/, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found