diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c19aeb1b..ee331326 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/tasks.py b/tasks.py index 43573a44..866809cb 100644 --- a/tasks.py +++ b/tasks.py @@ -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")