MCPcopy
hub / github.com/pytest-dev/pytest / fix_formatting

Function fix_formatting

scripts/release.py:88–93  ·  scripts/release.py::fix_formatting

Runs pre-commit in all files to ensure they are formatted correctly

()

Source from the content-addressed store, hash-verified

86
87
88def fix_formatting() -> None:
89 class="st">""class="st">"Runs pre-commit in all files to ensure they are formatted correctly"class="st">""
90 print(
91 fclass="st">"{Fore.CYAN}[generate.fix linting] {Fore.RESET}Fixing formatting using pre-commit"
92 )
93 call([class="st">"pre-commit", class="st">"run", class="st">"--all-files"])
94
95
96def check_links() -> None:

Callers 1

pre_releaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected