Skip to content

Commit ff55d02

Browse files
committed
fix pre-commit hooks for fork
1 parent fdd42fb commit ff55d02

File tree

4 files changed

+7
-161
lines changed

4 files changed

+7
-161
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Deploy docs
1414
run: |
1515
export MODE=BUILD
16-
export PACKAGE=datajoint
16+
export PACKAGE=datajoint_v0
1717
export UPSTREAM_REPO=https://github.com/${GITHUB_REPOSITORY}.git
1818
export HOST_UID=$(id -u)
1919
docker compose -f docs/docker-compose.yaml up --exit-code-from docs --build

.github/workflows/post_draft_release_published.yaml

Lines changed: 0 additions & 154 deletions
This file was deleted.

.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+
- "datajoint_v0"
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+
- "datajoint_v0"
1818
- "tests"
1919
jobs:
2020
test:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 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", "datajoint_v0", "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: datajoint_v0 # a lot of files in tests are not compliant
4545
# style tests
4646
- id: flake8
4747
args:
@@ -50,8 +50,8 @@ repos:
5050
- --max-complexity=62
5151
- --max-line-length=127
5252
- --statistics
53-
- --per-file-ignores=datajoint/diagram.py:C901
54-
files: datajoint # a lot of files in tests are not compliant
53+
- --per-file-ignores=datajoint_v0/diagram.py:C901
54+
files: datajoint_v0 # 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)