Skip to content

fix: More formatting errors #28

fix: More formatting errors

fix: More formatting errors #28

Workflow file for this run

name: Presubmit
# Mirror the local scripts/presubmit.sh pipeline (format, lint, build, test)
# so PRs get the same checks contributors run with ./scripts/presubmit.sh.
# Format and lint each run as their own job for fast, parallel feedback; the
# heavy build+test job lives in ci.yml.
on:
push:
branches: [main]
pull_request:
jobs:
format:
name: Format (fourmolu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/run-fourmolu@v11
with:
version: "0.17.0.0"
# Keep this list in sync with .fourmolu-ignore. These meta-package
# wrappers use CPP to gate re-exports on cabal flags, which
# fourmolu's ghc-lib-parser can't parse (Haddock mode).
pattern: |
**/*.hs
**/*.hs-boot
!src/DataFrame.hs
!src/DataFrame/TH.hs
!src/DataFrame/Typed.hs
!src/DataFrame/Typed/TH.hs
lint:
name: Lint (hlint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up HLint
uses: haskell-actions/hlint-setup@v2
with:
version: "3.8"
- name: Run HLint over every satellite
uses: haskell-actions/hlint-run@v2
with:
# hlint-run@v2 parses this as a JSON array iff it matches
# /^\s*\[.*\]\s*$/ on a single line (no `s` flag); otherwise the
# entire value is treated as one path. Keep every body line at the
# same indent so `>-` folds it all into one line.
path: >-
["src/", "app/", "benchmark/", "examples/", "ffi/", "tests/",
"dataframe-arrow/", "dataframe-core/", "dataframe-csv/",
"dataframe-csv-th/", "dataframe-fastcsv/", "dataframe-fusion/",
"dataframe-hasktorch/", "dataframe-json/", "dataframe-lazy/",
"dataframe-learn/", "dataframe-operations/", "dataframe-parquet/",
"dataframe-parquet-th/", "dataframe-parsing/",
"dataframe-persistent/", "dataframe-th/", "dataframe-viz/"]
fail-on: warning