2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 20:25:26 +00:00

Format code

This commit is contained in:
Asterix\Oliver
2025-06-14 10:59:13 +10:00
parent 0349ebb0b3
commit 387dc1eb39
96 changed files with 5478 additions and 7340 deletions

View File

@ -41,7 +41,13 @@ def android(c):
@task
def format(c, analyze=False, dry_run=False):
"""Format Dart code."""
c.run(f"dart format .{" --output=none" if dry_run else ''}")
cmd = "dart format ."
if dry_run:
cmd += " --output=none"
c.run(cmd)
if analyze:
c.run("flutter analyze")