mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
Convert tidy to a non-egg Python package
It seems that servo-tidy is only used by webrender in my GitHub searches. WebRender could simply use `rustfmt` and the tidy on pypi hasn't been updated since 2018. Converting tidy to a normal Python package removes the maintenance burden of continually fixing the easy install configuration. Fixes #29094. Fixes #29334.
This commit is contained in:
parent
fa266abd29
commit
81433a8684
54 changed files with 68 additions and 266 deletions
|
@ -31,14 +31,12 @@ from mach.decorators import (
|
|||
CommandProvider,
|
||||
Command,
|
||||
)
|
||||
import tidy
|
||||
|
||||
from servo_tidy import tidy
|
||||
from servo.command_base import (
|
||||
CommandBase,
|
||||
call, check_call, check_output,
|
||||
)
|
||||
from servo_tidy_tests import test_tidy
|
||||
|
||||
from servo.util import delete
|
||||
from distutils.dir_util import copy_tree
|
||||
|
||||
|
@ -298,7 +296,7 @@ class MachCommands(CommandBase):
|
|||
help="Only handle files in the stylo tree")
|
||||
def test_tidy(self, all_files, no_progress, self_test, stylo, force_cpp=False, no_wpt=False):
|
||||
if self_test:
|
||||
return test_tidy.do_tests()
|
||||
return tidy.do_tests()
|
||||
else:
|
||||
if no_wpt:
|
||||
manifest_dirty = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue