Skip to content

Commit fdd6bd7

Browse files
authored
Merge pull request #36 from CBroz1/main
Minor NWB fix, markdown lint, spell check, precommit fixes
2 parents a36b1b8 + 7aec6cd commit fdd6bd7

File tree

17 files changed

+168
-46
lines changed

17 files changed

+168
-46
lines changed

.markdownlint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
44
MD009: false # permit trailing spaces
55
MD007: false # List indenting - permit 4 spaces
6-
MD013:
6+
MD013:
77
line_length: "88" # Line length limits
88
tables: false # disable for tables
99
headings: false # disable for headings
1010
MD030: false # Number of spaces after a list
1111
MD033: # HTML elements allowed
12-
allowed_elements:
12+
allowed_elements:
1313
- "br"
1414
MD034: false # Permit bare URLs
1515
MD031: false # Spacing w/code blocks. Conflicts with `??? Note` and code tab styling

.pre-commit-config.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
default_stages: [commit, push]
2+
exclude: (^.github/|^docs/|^images/)
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v4.4.0
7+
hooks:
8+
- id: trailing-whitespace
9+
- id: end-of-file-fixer
10+
- id: check-yaml
11+
- id: check-added-large-files # prevent giant files from being committed
12+
- id: requirements-txt-fixer
13+
- id: mixed-line-ending
14+
args: ["--fix=lf"]
15+
description: Forces to replace line ending by the UNIX 'lf' character.
16+
17+
# black
18+
- repo: https://github.com/psf/black
19+
rev: 22.12.0
20+
hooks:
21+
- id: black
22+
- id: black-jupyter
23+
args:
24+
- --line-length=88
25+
26+
# isort
27+
- repo: https://github.com/pycqa/isort
28+
rev: 5.11.2
29+
hooks:
30+
- id: isort
31+
args: ["--profile", "black"]
32+
description: Sorts imports in an alphabetical order
33+
34+
# flake8
35+
- repo: https://github.com/pycqa/flake8
36+
rev: 4.0.1
37+
hooks:
38+
- id: flake8
39+
args: # arguments to configure flake8
40+
# making isort line length compatible with black
41+
- "--max-line-length=88"
42+
- "--max-complexity=18"
43+
- "--select=B,C,E,F,W,T4,B9"
44+
45+
# these are errors that will be ignored by flake8
46+
# https://www.flake8rules.com/rules/{code}.html
47+
- "--ignore=E203,E501,W503,W605,E402"
48+
# E203 - Colons should not have any space before them.
49+
# Needed for list indexing
50+
# E501 - Line lengths are recommended to be no greater than 79 characters.
51+
# Needed as we conform to 88
52+
# W503 - Line breaks should occur after the binary operator.
53+
# Needed because not compatible with black
54+
# W605 - a backslash-character pair that is not a valid escape sequence now
55+
# generates a DeprecationWarning. This will eventually become a SyntaxError.
56+
# Needed because we use \d as an escape sequence
57+
# E402 - Place module level import at the top.
58+
# Needed to prevent circular import error

CHANGELOG.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Changelog
22

3-
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
3+
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
4+
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
45

56
## [0.1.5] - Unreleased
67

7-
- Added - `surgery` schema
8-
- Added - mkdocs documentation
8+
- Add - `surgery` schema
9+
- Add - mkdocs documentation
10+
- Update - string typing for NWB export of Species
911

1012
## [0.1.4] - 2022-08-30
1113

12-
- Added - "subject_nickname" into Subject table
14+
- Add - "subject_nickname" into Subject table
1315
- Update - rework "SubjectCull" table
1416

1517
## [0.1.3] - 2022-07-06
@@ -18,27 +20,27 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
1820

1921
## [0.1.2] - 2022-06-27
2022

21-
- Added - Code of Conduct
23+
- Add - Code of Conduct
2224
- Update - pull subject from parent directory in nwb export
2325
- Update - for genotyping.BreedingPair part tables, projection from Subject
2426
- genotyping.BreedingPair.Mother, change attribute to 'mother'
2527
- genotyping.BreedingPair.Father, change attribute to 'father'
2628

2729
## [0.1.1] - 2022-05-10
2830

29-
- Added - NWB export
31+
- Add - NWB export
3032
- Update - Shorten subject primary key to varchar(8)
31-
- Added - Adopt black formatting into code base
33+
- Add - Adopt black formatting into code base
3234

3335
## [0.1.0b0] - 2021-05-07
3436

3537
- Update - First beta release
3638

3739
## [0.1.0a1] - 2021-05-03
3840

39-
- Added - GitHub Action release process
40-
- Added - `subject` schema
41-
- Added - `genotyping` schema
41+
- Add - GitHub Action release process
42+
- Add - `subject` schema
43+
- Add - `genotyping` schema
4244

4345
[0.1.5]: https://github.com/datajoint/element-animal/releases/tag/0.1.5
4446
[0.1.4]: https://github.com/datajoint/element-animal/releases/tag/0.1.4

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Contributor Covenant Code of Conduct
32

43
## Our Pledge

CONTRIBUTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Contribution Guidelines
2-
This project follows the [DataJoint Contribution Guidelines](https://docs.datajoint.io/python/community/02-Contribute.html). Please reference the link for more full details.
2+
3+
This project follows the
4+
[DataJoint Contribution Guidelines](https://datajoint.com/docs/community/contribute/).
5+
Please reference the link for more full details.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ DataJoint Element for storing animal meta data, genotype, and surgery informatio
44
DataJoint Elements collectively standardize and automate data collection and analysis
55
for neuroscience experiments. Each Element is a modular pipeline for data storage and
66
processing with corresponding database tables that can be combined with other Elements
7-
to assemble a fully functional pipeline.
7+
to assemble a fully functional pipeline.
88

99
Installation and usage instructions can be found at the [Element documentation](https://datajoint.com/docs/elements/element-animal).
1010

cspell.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// cSpell Settings
2+
//https://github.com/streetsidesoftware/vscode-spell-checker
3+
{
4+
"version": "0.2", // Version of the setting file. Always 0.2
5+
"language": "en", // language - current active spelling language
6+
"enabledLanguageIds": [
7+
"markdown", "yaml", "python"
8+
],
9+
// flagWords - list of words to be always considered incorrect
10+
// This is useful for offensive words and common spelling errors.
11+
// For example "hte" should be "the"
12+
"flagWords": [],
13+
"allowCompoundWords": true,
14+
"ignorePaths": [
15+
"./element_array_ephys.egg-info/*",
16+
"./images/*"
17+
],
18+
"words": [
19+
"Berens",
20+
"CICD",
21+
"dorso",
22+
"dura",
23+
"Ecker",
24+
"electophysiology",
25+
"elif",
26+
"Ephys",
27+
"genotyping",
28+
"Genotyping",
29+
"Hoenselaar",
30+
"IACUC",
31+
"inlinehilite",
32+
"linenums",
33+
"mkdocs",
34+
"mkdocstrings",
35+
"opto",
36+
"pymdownx",
37+
"Reimer",
38+
"Roboto",
39+
"RRID",
40+
"Rxiv",
41+
"Sabatini",
42+
"Sasaki",
43+
"Shen",
44+
"Siapas",
45+
"Sinz",
46+
"Sitonic",
47+
"Tolias",
48+
"Yatsenko",
49+
"Zuckerman",
50+
"zygosity",
51+
"Zygosity"
52+
]
53+
}

docs/mkdocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ nav:
1616
# Markdown in mkdocs
1717
# 01. Redering concatenates across single line breaks. This means...
1818
# A. We have to be careful to add extra line breaks around paragraphs,
19-
# including between the end of a pgf and the beginnign of bullets.
19+
# including between the end of a pgf and the beginning of bullets.
2020
# B. We can use hard wrapping to make github reviews easier to read.
2121
# VSCode Rewrap extension offers a keyboard shortcut for hard wrap
2222
# at the ruler, but don't add breaks in [multiword links](example.com)
@@ -43,7 +43,7 @@ nav:
4343
# HOST_UID=$(id -u) docker compose -f docs/docker-compose.yaml up --build
4444
# ```
4545
# 02. Site analytics depend on a local environment variable GOOGLE_ANALYTICS_KEY
46-
# You can find this in LastPass or declare with any string to suprress errors
46+
# You can find this in LastPass or declare with any string to suppress errors
4747
# 03. The API section will pull docstrings.
4848
# A. Follow google styleguide e.g.,
4949
# https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html

docs/src/citation.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ Resource Identifiers (RRIDs) and manuscripts.
55

66
- DataJoint for Python or MATLAB
77

8-
- Yatsenko D, Reimer J, Ecker AS, Walker EY, Sinz F, Berens P, Hoenselaar A, Cotton
9-
RJ, Siapas AS, Tolias AS. DataJoint: managing big scientific data using MATLAB or
10-
Python. bioRxiv. 2015 Jan 1:031658. doi: https://doi.org/10.1101/031658
8+
- Yatsenko D, Reimer J, Ecker AS, Walker EY, Sinz F, Berens P, Hoenselaar A, Cotton
9+
RJ, Siapas AS, Tolias AS. DataJoint: managing big scientific data using MATLAB or
10+
Python. bioRxiv. 2015 Jan 1:031658. doi: https://doi.org/10.1101/031658
1111

12-
- DataJoint ([RRID:SCR_014543](https://scicrunch.org/resolver/SCR_014543)) -
13-
DataJoint for `<Select Python or MATLAB>` (version `<Enter version number>`)
12+
- DataJoint ([RRID:SCR_014543](https://scicrunch.org/resolver/SCR_014543)) -
13+
DataJoint for `<Select Python or MATLAB>` (version `<Enter version number>`)
1414

1515
- DataJoint Elements
1616

17-
- Yatsenko D, Nguyen T, Shen S, Gunalan K, Turner CA, Guzman R, Sasaki M, Sitonic
18-
D, Reimer J, Walker EY, Tolias AS. DataJoint Elements: Data Workflows for
19-
Neurophysiology. bioRxiv. 2021 Jan 1. doi: https://doi.org/10.1101/2021.03.30.437358
17+
- Yatsenko D, Nguyen T, Shen S, Gunalan K, Turner CA, Guzman R, Sasaki M, Sitonic D,
18+
Reimer J, Walker EY, Tolias AS. DataJoint Elements: Data Workflows for
19+
Neurophysiology. bioRxiv. 2021 Jan 1. doi:
20+
https://doi.org/10.1101/2021.03.30.437358
2021

21-
- DataJoint Elements
22-
([RRID:SCR_021894](https://scicrunch.org/resolver/SCR_021894)) - Element Animal
23-
(version {{ PATCH_VERSION }})
22+
- DataJoint Elements ([RRID:SCR_021894](https://scicrunch.org/resolver/SCR_021894)) -
23+
Element Animal (version {{ PATCH_VERSION }})

docs/src/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Additionally, we interviewed these teams to understand their experiment workflow
1818
associated tools, and interfaces. These teams include:
1919

2020
- [International Brain Laboratory](https://github.com/int-brain-lab/IBL-pipeline)
21-
- BrainCoGs (Princeton Neuroscience Institute)
21+
- BrainCoGs (Princeton Neuroscience Institute)
2222
([Python](https://github.com/BrainCOGS/U19-pipeline_python) / [MATLAB](https://github.com/BrainCOGS/U19-pipeline-matlab))
2323
- [MoC3 (Columbia Zuckerman Institute) + Costa Lab (private repository) + Hillman Lab](https://github.com/ZuckermanBrain/datajoint-hillman)
2424
- [Sabatini Lab](https://github.com/bernardosabatinilab/sabatini-datajoint-pipeline)

0 commit comments

Comments
 (0)