Skip to content

flake8 ignore configuration #38

Closed

Description

@lesteve

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 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.

Activity

  1. mrocklin commented on Apr 18, 2018

    @mrocklin
    Member
  2. changed the title [-]flake8 igore configuration[/-] [+]flake8 ignore configuration[/+] on Apr 18, 2018
  3. lesteve commented on Apr 18, 2018

    @lesteve
    MemberAuthor

    Changing style in dask/dask or dask/distributed is also doable but will likely require more discussion.

    Just for completeness, I did not really have this in mind for now. The main reason I looked at other dask-related projects to gauge whether they was some commonly agreed flake8 setup.

  4. mrocklin commented on Apr 18, 2018

    @mrocklin
    Member
  5. lesteve commented on Apr 19, 2018

    @lesteve
    MemberAuthor

    Just for clarity sake and only talking about dask-jobqueue, I have no major annoyances with the default flake8 ignore settings, does someone have any @jhamman @jakirkham @mrocklin ?

  6. jhamman commented on Apr 19, 2018

    @jhamman
    Member

    I do not have strong feelings on this one. If I had to choose, I would probably mirror the settings in distributed.

  7. guillaumeeb commented on Apr 20, 2018

    @guillaumeeb
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions