simplify decision engine

- not specified codes (cmdline / config) are now known as being implicit via
  None sentinel
- removed redundant logic for (explicit, explicit) selection
This commit is contained in:
Anthony Sottile 2022-03-22 18:10:32 -07:00
parent dba40df8d1
commit c5225db626
5 changed files with 166 additions and 351 deletions

View file

@ -76,15 +76,5 @@ def test_aggregate_options_when_isolated(optmanager, flake8_config):
options = aggregator.aggregate_options(optmanager, cfg, cfg_dir, arguments)
assert options.select == ["E11", "E34", "E402", "W", "F"]
assert sorted(options.ignore) == [
"E121",
"E123",
"E126",
"E226",
"E24",
"E704",
"E8",
"W503",
"W504",
]
assert options.ignore is None
assert options.exclude == [os.path.abspath("tests/*")]