mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 13:36:54 +00:00
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:
parent
dba40df8d1
commit
c5225db626
5 changed files with 166 additions and 351 deletions
|
|
@ -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/*")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue