2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 11:45:31 +00:00

Add format task

This commit is contained in:
Asterix\Oliver
2025-06-14 10:33:03 +10:00
parent 21ca547fbb
commit 33ec77e588
2 changed files with 6 additions and 1 deletions

View File

@ -47,7 +47,7 @@ jobs:
python3 find_dart_files.py
flutter pub get
flutter analyze
flutter format --output=none --set-exit-if-changed .
dart format --output=none --set-exit-if-changed .
- name: Install Python
uses: actions/setup-python@v4

View File

@ -37,3 +37,8 @@ def ios(c):
def android(c):
"""Build Android app in release configuration."""
c.run("flutter build appbundle --release --no-tree-shake-icons")
@task
def format(c):
"""Format Dart code."""
c.run("dart format --output=none")