mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 04:05:28 +00:00
Add format task
This commit is contained in:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -47,7 +47,7 @@ jobs:
|
|||||||
python3 find_dart_files.py
|
python3 find_dart_files.py
|
||||||
flutter pub get
|
flutter pub get
|
||||||
flutter analyze
|
flutter analyze
|
||||||
flutter format --output=none --set-exit-if-changed .
|
dart format --output=none --set-exit-if-changed .
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
5
tasks.py
5
tasks.py
@ -37,3 +37,8 @@ def ios(c):
|
|||||||
def android(c):
|
def android(c):
|
||||||
"""Build Android app in release configuration."""
|
"""Build Android app in release configuration."""
|
||||||
c.run("flutter build appbundle --release --no-tree-shake-icons")
|
c.run("flutter build appbundle --release --no-tree-shake-icons")
|
||||||
|
|
||||||
|
@task
|
||||||
|
def format(c):
|
||||||
|
"""Format Dart code."""
|
||||||
|
c.run("dart format --output=none")
|
||||||
|
Reference in New Issue
Block a user