MCPcopy Create free account
hub / github.com/pytest-dev/pytest / fix_formatting

Function fix_formatting

scripts/release.py:73–78  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

71
72
73def fix_formatting():
74 """Runs pre-commit in all files to ensure they are formatted correctly"""
75 print(
76 f"{Fore.CYAN}[generate.fix linting] {Fore.RESET}Fixing formatting using pre-commit"
77 )
78 call(["pre-commit", "run", "--all-files"])
79
80
81def check_links():

Callers 1

pre_releaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected