Skip to content

Commit

Permalink
Use --extend-ignore instead of --ignore in tests (#366)
Browse files Browse the repository at this point in the history
Came up in
[#364](#364 (comment))

Plain `--ignore` resets the list of ignores which means that the config
file is not taken into account.
  • Loading branch information
tomasr8 committed Apr 14, 2023
1 parent 95d65fe commit 7e921e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/del.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flags: --ignore=Y037
# flags: --extend-ignore=Y037
from typing import TypeAlias, Union

ManyStr: TypeAlias = list[EitherStr]
Expand Down
2 changes: 1 addition & 1 deletion tests/forward_refs.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flags: --ignore=Y037
# flags: --extend-ignore=Y037
from typing import Optional, TypeAlias, Union

MaybeCStr: TypeAlias = Optional[CStr]
Expand Down
2 changes: 1 addition & 1 deletion tests/forward_refs_annassign.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flags: --ignore=Y037
# flags: --extend-ignore=Y037
from typing import Optional, TypeAlias, Union

MaybeCStr: TypeAlias = Optional[CStr]
Expand Down
2 changes: 1 addition & 1 deletion tests/vanilla_flake8_not_clean_forward_refs.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# flags: --no-pyi-aware-file-checker --ignore=Y037
# flags: --no-pyi-aware-file-checker --extend-ignore=Y037
from typing import TypeAlias, Union

ManyStr: TypeAlias = list[EitherStr] # F821 undefined name 'EitherStr'
Expand Down

0 comments on commit 7e921e1

Please sign in to comment.