Skip to content

Scope PR data lint to changed files only - #35

Open
lassebenni wants to merge 2 commits into
mainfrom
feat/pr-lint-changed-files-only
Open

lassebenni wants to merge 2 commits into
mainfrom
feat/pr-lint-changed-files-only

Conversation

@lassebenni

@lassebenni lassebenni commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

What I built

data-ci-cd runs ruff/black/sqlfmt/ty only on files changed under data/, for pull requests and pushes to main. Pytest still runs the full suite.

Why this approach

Full-tree lint failed clean one-file DAG changes when unrelated files on main were already dirty. Style checks belong on the diff; behaviour stays covered by pytest.

Contract impact

None

How to run

# PR or push that only touches data/airflow/dags/pipeline_dag.py
# lint/format should only see that file

Self-check

  • I ran this and it works
  • Tests pass locally
  • No secrets, tokens, or connection strings in the diff
  • This pull request does one thing

Full-tree checks on every PR failed clean DAG changes when main already had
unrelated issues. Push to main still checks the whole data/ tree.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings August 27, 2026 20:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Drop the full-tree main gate — a merge push also only checks what that
commit changed under data/.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants