Skip to content
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

Fix/plugin flags #108

Merged
merged 1 commit into from
Jul 25, 2022
Merged

Fix/plugin flags #108

merged 1 commit into from
Jul 25, 2022

Conversation

pwoolvett
Copy link

@pwoolvett pwoolvett commented Jun 8, 2022

DRAFT:

This fix allows to use the same names in toml configuration files
as those from flake8.

Before this, values in the main flakeheaven section of the config
file required using the configuration name (as in
flake8.options.manager.Option.configuration_name). For example,
setting max-doc-length (with hyphens) had no effect on W505 when
using flakeheaven, but worked as intened in plain flake8 using
tox.ini.

With this fix applied, configurations can use the same names from
.ini-style in the .toml config.

  • Added test validating pycodestyle using max-line-length

related #103
related #78
fixes #105

This fix allows to use the same names in toml configuration files
as those from flake8.

Before this, values in the main `flakeheaven` section of the config
file required using the configuration name (as in
`flake8.options.manager.Option.configuration_name`). For example,
setting `max-doc-length` (with hyphens) had no effect on `W505`
when using flakeheaven, but worked as intened in plain flake8 using
`tox.ini`.

With this fix applied, configurations can use the same names from
`.ini`-style in the `.toml` config.

* Added test validating pycodestyle using `max-line-length`

related #103
related #78
fixes #105
@pwoolvett pwoolvett marked this pull request as ready for review July 25, 2022 20:36
@pwoolvett pwoolvett merged commit 6f0d01e into main Jul 25, 2022
Development automation moved this from In progress to Done Jul 25, 2022
@pwoolvett pwoolvett deleted the fix/plugin_flags branch July 25, 2022 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

pyproject.toml plugins config fields differ from flake8
1 participant