Skip to content

Unable to provide plugin options via flakehell #7

Open

Description

@bitphage

Let's say I have flake8-keyword-arguments and want to pass --max-pos-args=3 option. With flake8, I just adding max-pos-args = 3 to .flake8 or passing --max-pos-args=3. Neither works for flakehell.

Tried to put into pyproject.toml, neither works as well:

[tool.flakehell]
max_pos_args = 3
max-pos-args = 3

Activity

  1. bitphage commented on Mar 23, 2021

    @bitphage
    Author

    Grrr... traced this down to _checkers.py.FlakeHellCheckersManager.make_checkers and Snapshot class to find out that it's just uses cache. Manual cache removal did the trick. rm -rf ~/.cache/flakehell

  2. bitphage commented on Mar 23, 2021

    @bitphage
    Author

    Probably flakehell should be intelligent enough to detect option changes...

  3. howeaj commented on Mar 28, 2021

    @howeaj

    Ran into the same problem with pylint options.

    Some kind of --force or --clear-cache option would also help.

  4. nobbynobbs commented on Apr 1, 2021

    @nobbynobbs

    Yeah! This behavior cost me couple of hours the day I've started using flakehell 😆

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