Skip to content

Commit

Permalink
chore: remove jsbeautifier dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiTheModder committed Feb 21, 2025
1 parent 37e3c2d commit f9e8b6b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
"Operating System :: OS Independent",
]

dependencies = ["PyYAML", "jsbeautifier"]
dependencies = ["PyYAML"]

[project.urls]
homepage = "https://github.com/RevEngiSquad/smalig"
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
PyYAML
jsbeautifier
3 changes: 1 addition & 2 deletions smalig/cli/app.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import argparse
import json as js
import jsbeautifier

from smalig import YamlReader, InstructionFetch, cls, grammar_yaml

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

0 comments on commit f9e8b6b

Please sign in to comment.