Skip to content

Commit 9fcb25a

Browse files
Merge pull request #1274 from d-v-b/fix/unbreak-test-workflow
update test workflow to use src layout
2 parents 049310c + 2007f33 commit 9fcb25a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
- "!gh-pages" # exclude gh-pages branch
77
- "!stage*" # exclude branches beginning with stage
88
paths:
9-
- "datajoint"
9+
- "src/datajoint"
1010
- "tests"
1111
pull_request:
1212
branches:
1313
- "**" # every branch
1414
- "!gh-pages" # exclude gh-pages branch
1515
- "!stage*" # exclude branches beginning with stage
1616
paths:
17-
- "datajoint"
17+
- "src/datajoint"
1818
- "tests"
1919
jobs:
2020
test:

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
rev: 25.1.0 # matching versions in pyproject.toml and github actions
3131
hooks:
3232
- id: black
33-
args: ["--check", "-v", "datajoint", "tests", "--diff"] # --required-version is conflicting with pre-commit
33+
args: ["--check", "-v", "src", "tests", "--diff"] # --required-version is conflicting with pre-commit
3434
- repo: https://github.com/PyCQA/flake8
3535
rev: 7.3.0
3636
hooks:
@@ -41,7 +41,7 @@ repos:
4141
- --count
4242
- --show-source
4343
- --statistics
44-
files: datajoint # a lot of files in tests are not compliant
44+
files: src/ # a lot of files in tests are not compliant
4545
# style tests
4646
- id: flake8
4747
args:
@@ -51,7 +51,7 @@ repos:
5151
- --max-line-length=127
5252
- --statistics
5353
- --per-file-ignores=datajoint/diagram.py:C901
54-
files: datajoint # a lot of files in tests are not compliant
54+
files: src/ # a lot of files in tests are not compliant
5555
- repo: https://github.com/rhysd/actionlint
5656
rev: v1.7.7
5757
hooks:

0 commit comments

Comments
 (0)