Skip to content

A conflict between Black and Flake8 #14

@DaleSeo

Description

@DaleSeo

Describe the bug
It seems like the way Black formats the code can cause the E231 violation during the Flake8 check.

./tests/test_graphql_client.py:88:75: E231 missing whitespace after ','
./tests/test_graphql_client.py:189:75: E231 missing whitespace after ','

I tried to manually add a whitespace after , at the two places above but Black removes them during pre-commit.

To Reproduce
Refer to the following failed jobs on Github Actions.

Expected behavior
Falke8 shouldn't complain about the formatted code by Black.

Additional context
A simple fix could be to tweaking .setup.cfg. so that Falke8 ignores the E231 linting rule.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions