mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01: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
5
python/tidy/tests/lints/invalid_error_tuple.py
Normal file
5
python/tidy/tests/lints/invalid_error_tuple.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Lint(LintRunner):
|
||||
def run(self):
|
||||
yield None
|
5
python/tidy/tests/lints/no_lint.py
Normal file
5
python/tidy/tests/lints/no_lint.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Linter(LintRunner):
|
||||
def run(self):
|
||||
pass
|
5
python/tidy/tests/lints/no_run.py
Normal file
5
python/tidy/tests/lints/no_run.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Lint(LintRunner):
|
||||
def some_method(self):
|
||||
pass
|
2
python/tidy/tests/lints/not_inherited.py
Normal file
2
python/tidy/tests/lints/not_inherited.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
class Lint(object):
|
||||
pass
|
0
python/tidy/tests/lints/not_script
Normal file
0
python/tidy/tests/lints/not_script
Normal file
6
python/tidy/tests/lints/proper_file.py
Normal file
6
python/tidy/tests/lints/proper_file.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from servo_tidy.tidy import LintRunner
|
||||
|
||||
class Lint(LintRunner):
|
||||
def run(self):
|
||||
for _ in [None]:
|
||||
yield ('path', 0, 'foobar')
|
Loading…
Add table
Add a link
Reference in a new issue