File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Frozen-app entry point: PyInstaller needs a real script to launch the Typer CLI."""
22
3+ import multiprocessing
4+
35from osmsg .cli import app
46
57if __name__ == "__main__" :
8+ multiprocessing .freeze_support () # ProcessPoolExecutor workers would recursively relaunch the exe otherwise
69 app ()
Original file line number Diff line number Diff line change 1212from osmsg .db .schema import create_tables
1313
1414
15+ @pytest .fixture (autouse = True )
16+ def _isolate_cwd (tmp_path , monkeypatch ):
17+ """Run each test from its own tmp dir so a CLI or pipeline run never writes stats.* into the repo
18+ root (which would otherwise trip pre-commit's modified-files check)."""
19+ monkeypatch .chdir (tmp_path )
20+
21+
1522def _writer (path : Path ) -> osmium .SimpleWriter :
1623 return osmium .SimpleWriter (str (path ), overwrite = True )
1724
You can’t perform that action at this time.
0 commit comments