1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

Opt in opensource/fbcode_builder to pyfmt

Reviewed By: zertosh

Differential Revision: D29612107

fbshipit-source-id: ac450058134e23a3831db35d2e49c80eb8cde36a
This commit is contained in:
Zsolt Dollenstein
2021-07-09 06:17:52 -07:00
committed by Facebook GitHub Bot
parent f3b62e2316
commit 40b6e08b08
24 changed files with 612 additions and 500 deletions

View File

@@ -485,7 +485,7 @@ class Loader(object):
return loader.suiteClass(suites)
_COVERAGE_INI = '''\
_COVERAGE_INI = """\
[report]
exclude_lines =
pragma: no cover
@@ -495,7 +495,7 @@ exclude_lines =
pragma:.*no${PY_IMPL}${PY_MAJOR}
pragma:.*nopy${PY_MAJOR}
pragma:.*nopy${PY_MAJOR}${PY_MINOR}
'''
"""
class MainProgram(object):
@@ -734,7 +734,7 @@ class MainProgram(object):
if not self.options.collect_coverage:
return
with tempfile.NamedTemporaryFile('w', delete=False) as coverage_ini:
with tempfile.NamedTemporaryFile("w", delete=False) as coverage_ini:
coverage_ini.write(_COVERAGE_INI)
self._coverage_ini_path = coverage_ini.name