Skip to content

Commit 52c0657

Browse files
committed
change to src structure and test change
1 parent a52c128 commit 52c0657

File tree

484 files changed

+28
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

484 files changed

+28
-5
lines changed

.github/workflows/caches_cron_job.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push: # When someting is pushed into main this checks if caches need to re-created
66
branches:
77
- master
8+
- main
89
schedule:
910
- cron: "0 12 * * *" # Daily at noon UTC
1011

.github/workflows/core-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Testing core
33
on:
44
pull_request:
55
types: [synchronize, opened, reopened]
6+
branches:
7+
- master
8+
- main
69

710
concurrency: # Cancel previous workflows on the same pull request
811
group: ${{ github.workflow }}-${{ github.ref }}
@@ -29,7 +32,7 @@ jobs:
2932
pip install -e .[test_core]
3033
- name: Test core with pytest
3134
run: |
32-
pytest -vv -ra --durations=0 --durations-min=0.001 spikeinterface/core | tee report.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1
35+
pytest -vv -ra --durations=0 --durations-min=0.001 src/spikeinterface/core | tee report.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1
3336
shell: bash # Necessary for pipeline to work on windows
3437
- name: Build test summary
3538
run: |

.github/workflows/full-test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: Full spikeinterface tests
33
on:
44
pull_request:
55
types: [synchronize, opened, reopened]
6-
6+
branches:
7+
- master
8+
- main
9+
710
concurrency: # Cancel previous workflows on the same pull request
811
group: ${{ github.workflow }}-${{ github.ref }}
912
cancel-in-progress: true

.github/workflows/s3-nwb-test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: S3 NWB Test
22
on:
33
pull_request:
44
types: [synchronize, opened, reopened]
5-
5+
branches:
6+
- master
7+
- main
68
concurrency: # Cancel previous workflows on the same pull request
79
group: ${{ github.workflow }}-${{ github.ref }}
810
cancel-in-progress: true
@@ -44,4 +46,4 @@ jobs:
4446
- name: Install fsspec, aiohttp and requests
4547
run: pip install fsspec aiohttp requests
4648
- name: run tests
47-
run: pytest spikeinterface/extractors/tests/test_nwb_s3_extractor.py
49+
run: pytest src/spikeinterface/extractors/tests/test_nwb_s3_extractor.py

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/psf/black
9+
rev: 23.1.0
10+
hooks:
11+
- id: black
12+
exclude: '^(doc|examples|spikeinterface|installation_tips)/'

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ package-data = {"spikeinterface.sorters" = ["**/*.m", "**/*.prm", "**/*.params",
3939
spikeinterface = ["**/tests/test_*"]
4040

4141
[tool.setuptools.packages.find]
42-
where = ["."]
42+
where = ["src"]
4343
include = ["spikeinterface*"]
4444
namespaces = false
4545
exclude = ["spikeinterface.*.tests"]
4646

47+
[tool.black]
48+
line-length = 120
4749

4850
[project.urls]
4951
homepage = "https://github.com/SpikeInterface/spikeinterface"
File renamed without changes.

0 commit comments

Comments
 (0)