Skip to content

Support adding exceptions through argument | --add-exceptions #83

@Bobronium

Description

@Bobronium

Compatibility section in docs states:

FlakeHeaven supports all flake8 plugins, formatters, and configs. However, FlakeHeaven has it’s own beautiful way to configure enabled plugins and codes. So, options like --ignore and --select unsupported.

Problem

I use flakeheaven as a linter in VSCode and some errors overlap with pylance or mypy, resulting in repeated errors and requiring more attention than it should. So ignoring overlapping errors makes sense.

However, I still want to see them when I execute flakeheaven manually, since I'm not using pyright manually.

Suggestion

It would be great to have option like --add-exceptions, which then could be used like this:

    "python.linting.flake8Path": "${workspaceFolder}/.venv/bin/flake8heavened",
    "python.linting.flake8Args": ["--add-exceptions=-F821,-F401"],

What do you think?

I can make a PR implementing it, but want to listen to your opinions/suggestions on that first.

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