From 85ff04168b0bdf592804696d44bf2375da30f09b Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 16 Sep 2025 21:06:12 +0200 Subject: [PATCH 1/2] update test workflow to use src layout --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 196ddec22..e1e28a1c8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,7 +6,7 @@ on: - "!gh-pages" # exclude gh-pages branch - "!stage*" # exclude branches beginning with stage paths: - - "datajoint" + - "src/datajoint" - "tests" pull_request: branches: @@ -14,7 +14,7 @@ on: - "!gh-pages" # exclude gh-pages branch - "!stage*" # exclude branches beginning with stage paths: - - "datajoint" + - "src/datajoint" - "tests" jobs: test: From 2007f335df8fc67a08e306aee43dead67f5ba3e6 Mon Sep 17 00:00:00 2001 From: Davis Vann Bennett Date: Tue, 16 Sep 2025 23:13:02 +0200 Subject: [PATCH 2/2] update hook invocations to use src layout --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a58e0483..ccf72ed80 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: rev: 25.1.0 # matching versions in pyproject.toml and github actions hooks: - id: black - args: ["--check", "-v", "datajoint", "tests", "--diff"] # --required-version is conflicting with pre-commit + args: ["--check", "-v", "src", "tests", "--diff"] # --required-version is conflicting with pre-commit - repo: https://github.com/PyCQA/flake8 rev: 7.3.0 hooks: @@ -41,7 +41,7 @@ repos: - --count - --show-source - --statistics - files: datajoint # a lot of files in tests are not compliant + files: src/ # a lot of files in tests are not compliant # style tests - id: flake8 args: @@ -51,7 +51,7 @@ repos: - --max-line-length=127 - --statistics - --per-file-ignores=datajoint/diagram.py:C901 - files: datajoint # a lot of files in tests are not compliant + files: src/ # a lot of files in tests are not compliant - repo: https://github.com/rhysd/actionlint rev: v1.7.7 hooks: