File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ """Utility functions for tmuxp fixtures."""
12import pathlib
23import typing as t
34
@@ -14,7 +15,9 @@ def get_workspace_file(
1415 return FIXTURE_PATH / _file
1516
1617
17- def read_workspace_file (_file : t .Union [pathlib .Path , str ]) -> str :
18+ def read_workspace_file (
19+ _file : t .Union [pathlib .Path , str ],
20+ ) -> str :
1821 """Return fixture data, relative to __file__."""
1922 if isinstance (_file , str ):
2023 _file = pathlib .Path (_file )
@@ -23,8 +26,11 @@ def read_workspace_file(_file: t.Union[pathlib.Path, str]) -> str:
2326
2427
2528def write_config (
26- config_path : pathlib .Path , filename : str , content : str
29+ config_path : pathlib .Path ,
30+ filename : str ,
31+ content : str ,
2732) -> pathlib .Path :
33+ """Write configuration content to file."""
2834 config = config_path / filename
2935 config .write_text (content , encoding = "utf-8" )
3036 return config
You can’t perform that action at this time.
0 commit comments