File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ def make_regexes(
9090 greater_equal_versions = [* greater_than_versions , str (version_tuple .minor )]
9191 less_than_versions = [str (x ) for x in range (version_tuple .minor + 1 , 10 )]
9292 # Current max Python version is 3.9
93- less_equal_versions = [str (version_tuple .minor ), * less_than_versions ]
93+ less_equal_versions = [str (version_tuple .minor ), * less_than_versions ] # pragma: no cover (!Linux)
9494 exact_versions = [str (version_tuple .minor )]
9595
9696 wrong_platforms_string = fr"(?!.*!{ current_platform } )" # (?!.*Windows)(?!.*Darwin)
@@ -118,8 +118,12 @@ def make_regexes(
118118 re .compile (
119119 fr"{ regex_main } \s*\((?=\s*(py|PY|Py)3({ '|' .join (exact_versions )} )){ wrong_platforms_string } { wrong_implementations_string } .*\)"
120120 ),
121+ re .compile (
122+ fr"{ regex_main } \s*\({ wrong_platforms_string } { wrong_implementations_string } .*\)"
123+ ),
121124 ]
122125
126+ print (excludes )
123127 return excludes
124128
125129 else :
@@ -152,7 +156,7 @@ def configure(self, config: Any) -> None:
152156 # print(config.exclude_list)
153157
154158 # Reinstate the general regex, but making sure it isn't followed by a left bracket.
155- config .exclude_list .append (not_version_regex )
159+ config .exclude_list .append (re . compile ( fr" { regex_main } (?!\(.*(.{{0,2}}(py|PY|Py)3\d(\+)?|! { platform . system () } |! { platform . python_implementation () } ).*\)).*$" ). pattern )
156160
157161 # TODO: Python 4.X
158162
You can’t perform that action at this time.
0 commit comments