File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def custom_addopts() -> None:
3434 if original_addopts != "" :
3535 original_addopts = [x .strip () for x in original_addopts ]
3636 non_blacklist_plugin_args = re .sub (r"-n(?: +|=)\S+" , "" , " " .join (original_addopts )).split (" " )
37- non_blacklist_plugin_args = [x for x in non_blacklist_plugin_args if x != "" ]
37+ non_blacklist_plugin_args = [x for x in non_blacklist_plugin_args if x != "" ]
3838 if non_blacklist_plugin_args != original_addopts :
3939 data ["tool" ]["pytest" ]["ini_options" ]["addopts" ] = non_blacklist_plugin_args
4040 # Write modified file
@@ -74,9 +74,7 @@ def add_addopts_to_pyproject() -> None:
7474 "-n 1" ,
7575 "-n auto" ,
7676 ]
77- with Path .open (
78- pyproject_file , "w" , encoding = "utf-8"
79- ) as f :
77+ with Path .open (pyproject_file , "w" , encoding = "utf-8" ) as f :
8078 f .write (tomlkit .dumps (data ))
8179
8280 yield
You can’t perform that action at this time.
0 commit comments