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(
90
90
greater_equal_versions = [* greater_than_versions , str (version_tuple .minor )]
91
91
less_than_versions = [str (x ) for x in range (version_tuple .minor + 1 , 10 )]
92
92
# 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)
94
94
exact_versions = [str (version_tuple .minor )]
95
95
96
96
wrong_platforms_string = fr"(?!.*!{ current_platform } )" # (?!.*Windows)(?!.*Darwin)
@@ -118,8 +118,12 @@ def make_regexes(
118
118
re .compile (
119
119
fr"{ regex_main } \s*\((?=\s*(py|PY|Py)3({ '|' .join (exact_versions )} )){ wrong_platforms_string } { wrong_implementations_string } .*\)"
120
120
),
121
+ re .compile (
122
+ fr"{ regex_main } \s*\({ wrong_platforms_string } { wrong_implementations_string } .*\)"
123
+ ),
121
124
]
122
125
126
+ print (excludes )
123
127
return excludes
124
128
125
129
else :
@@ -152,7 +156,7 @@ def configure(self, config: Any) -> None:
152
156
# print(config.exclude_list)
153
157
154
158
# 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 )
156
160
157
161
# TODO: Python 4.X
158
162
You can’t perform that action at this time.
0 commit comments