Skip to content

Commit f9e8b6b

Browse files
committed
chore: remove jsbeautifier dependency
1 parent 37e3c2d commit f9e8b6b

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Operating System :: OS Independent",
2727
]
2828

29-
dependencies = ["PyYAML", "jsbeautifier"]
29+
dependencies = ["PyYAML"]
3030

3131
[project.urls]
3232
homepage = "https://github.com/RevEngiSquad/smalig"

requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
PyYAML
2-
jsbeautifier

smalig/cli/app.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import argparse
22
import json as js
3-
import jsbeautifier
43

54
from smalig import YamlReader, InstructionFetch, cls, grammar_yaml
65

@@ -45,7 +44,7 @@ def app(file_path, target, json, out, exact_match) -> None:
4544
print(f"{target} not found!")
4645
return
4746
if json:
48-
format_code = jsbeautifier.beautify(js.dumps(result.result))
47+
format_code = js.dumps(result.result, indent=4)
4948
if out:
5049
with open(out, "w") as f:
5150
f.write(format_code)

0 commit comments

Comments
 (0)