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

Function fix_formatting

scripts/release.py:88–93  ·  view source on GitHub ↗

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 """Runs pre-commit in all files to ensure they are formatted correctly"""
90 print(
91 f"{Fore.CYAN}[generate.fix linting] {Fore.RESET}Fixing formatting using pre-commit"
92 )
93 call(["pre-commit", "run", "--all-files"])
94
95
96def check_links() -> None:

Callers 1

pre_releaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…