[flake8]

# Recommend matching the black line length (default 88),
# rather than using the flake8 default of 79:
max-line-length = 88

extend-ignore =
    # See https://github.com/PyCQA/pycodestyle/issues/373
    # flake8/pycodechecker give false positives on black code
    E203,

# Most of our test cases deliberately violate style checks:
per-file-ignores =
    # These are meant to trigger black changes:
    tests/test_changes/hello_world.py: E201,E202,E211,W391,BLK100
    tests/test_changes/hello_world_EOF.py: W292,BLK100
    tests/without_pyproject_toml/ordinary_quotes.py: Q000,BLK100
    # These are not meant to trigger black changes:
    tests/test_cases/no_closing_bracket.py: E902
    tests/test_fail/mixed_tab_spaces.py: E101,E999,W191
    tests/with_pyproject_toml/ordinary_quotes.py: Q000
    tests/test_cases/mixed_tab_spaces.py: E101,E999,W191
    # The bad TOML file breaks black checking this file:
    tests/with_bad_toml/hello_world.py: BLK997,

# =====================
# flake-quote settings:
# =====================
# Set this to match black style:
inline-quotes = double
