From e449f5e1d5d29a5ff83ff9a92d7b956543ccedd7 Mon Sep 17 00:00:00 2001 From: 446564 Date: Wed, 4 Feb 2026 08:33:09 -0800 Subject: [PATCH] add dart format workflow checks code has been formatted with dart format on push and pull request adds a note in README for contributors --- .github/workflows/dart.yml | 21 +++++++++++++++++++++ README.md | 1 + 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/dart.yml diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 0000000..f297787 --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,21 @@ +name: Dart Format + +on: + pull_request: + push: + +jobs: + analyze: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Dart + uses: dart-lang/setup-dart@v1 + + - name: Install Pub Dependencies + run: dart pub get + + - name: Verify Formatting + run: dart format --output=none --set-exit-if-changed . diff --git a/README.md b/README.md index 984e6ba..bad9b6c 100644 --- a/README.md +++ b/README.md @@ -217,6 +217,7 @@ This is an open-source project. Contributions are welcome! - Use `const` constructors where possible - Keep functions small and focused - Avoid premature abstractions +- Run dart format on all changes before submitting ## Support