Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit e8eb5af

Browse files
author
Joseph Burling
committed
build(retrocookie): reflect updates to source template from generated project 'science-institute_brain-lab'
1 parent aecdc6a commit e8eb5af

File tree

5 files changed

+148
-64
lines changed

5 files changed

+148
-64
lines changed
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
.git
21
.mypy_cache
32
.nox
4-
**/__pycache__/
3+
.pytest_cache
4+
**/__pycache__
55
**/.DS_Store
66
**/.env
7-
**/.pytest_cache/
7+
**/.git
8+
**/.pytest_cache
89
**/*.egg-info
9-
**/*.ipynb_checkpoints/
10+
**/*.ipynb_checkpoints
1011
**/*.pem
1112
**/*cookiecutter*
12-
build/*
13+
build
1314
{{cookiecutter._djconfig}}
14-
docs/api/*
15+
docs/api
1516
environment.lock.yml
16-
site/*
17+
site

datajoint-workflow/{{cookiecutter.github_repo}}/docker/.devcontainer/devcontainer.json

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"vivaxy.vscode-conventional-commits",
1616
"yzhang.markdown-all-in-one"
1717
],
18+
"initializeCommand": "test -f \"${localWorkspaceFolder}/.env\" || exit 7",
1819
"service": "devcontainer_env",
1920
// Set *default* container specific settings.json values on container create.
2021
"settings": {
@@ -34,38 +35,55 @@
3435
"module",
3536
"docker"
3637
],
38+
"djcookiecutter.condaExec": "mamba",
39+
"djcookiecutter.localPath": "${env:HOME}/Documents/{{cookiecutter.__org}}/dj-cookiecutter",
3740
"files.exclude": {
3841
"**/.DS_Store": true,
3942
"**/.git": true,
4043
"**/.hg": true,
44+
"**/.ipynb_checkpoints": true,
4145
"**/.svn": true,
4246
"**/CVS": true,
4347
"**/Thumbs.db": true,
44-
"*.command": true
48+
"**/__pycache__": true,
49+
"*.command": true,
50+
".mypy_cache": true,
51+
".nox": true,
52+
".pytest_cache": true,
53+
"build": true,
54+
"src/*.egg-info": true
4555
},
56+
"jupyter.alwaysScrollOnNewCell": true,
4657
"jupyter.generateSVGPlots": true,
58+
"jupyter.interactiveWindowMode": "single",
59+
"jupyter.notebookFileRoot": "${workspaceFolder}",
60+
"jupyter.sendSelectionToInteractiveWindow": true,
61+
"jupyter.themeMatplotlibPlots": true,
62+
"python.analysis.completeFunctionParens": true,
63+
"python.analysis.diagnosticMode": "workspace",
64+
"python.analysis.diagnosticSeverityOverrides": {
65+
"reportGeneralTypeIssues": "information"
66+
},
67+
"python.analysis.typeCheckingMode": "basic",
4768
"python.defaultInterpreterPath": "/usr/local/bin/python",
4869
"python.formatting.blackArgs": [
4970
"--line-length=88"
5071
],
5172
"python.formatting.provider": "black",
5273
"python.languageServer": "Pylance",
53-
"python.linting.enabled": true,
5474
"python.linting.flake8Args": [
5575
"--max-line-length=88",
5676
"--extend-ignore=E203"
5777
],
5878
"python.linting.flake8Enabled": true,
79+
"python.linting.mypyCategorySeverity.error": "Hint",
5980
"python.linting.mypyEnabled": true,
60-
"python.linting.pylintEnabled": false,
6181
"python.sortImports.args": [
62-
"--profile",
63-
"black"
82+
"--profile=black"
6483
],
6584
"python.terminal.activateEnvInCurrentTerminal": true,
66-
"python.terminal.activateEnvironment": true
85+
"python.testing.pytestEnabled": true
6786
},
6887
"shutdownAction": "none",
69-
"workspaceFolder": "/home/{{cookiecutter.github_user}}/{{cookiecutter.__org}}_{{cookiecutter.__wf}}",
70-
"initializeCommand": "test -f \"${localWorkspaceFolder}/.env\" || exit 1"
88+
"workspaceFolder": "/home/{{cookiecutter.github_user}}/{{cookiecutter.__org}}_{{cookiecutter.__wf}}"
7189
}

datajoint-workflow/{{cookiecutter.github_repo}}/docker/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,22 @@ docker-compose -f docker-compose-codebook_env.yaml up --detach --force-recreate
5858

5959
## Standard Workflow Environment
6060

61+
...
62+
63+
6164
### Docker Compose
6265

6366
Will automatically load environment variables from `.env` file.
6467

6568
```bash
6669
cd docker
67-
docker-compose -f docker-compose-standard_workflow.yaml up --detach --force-recreate --remove-orphans --build
70+
docker-compose -f docker-compose-standard_worker.yaml up --detach --force-recreate --remove-orphans --build
6871
```
6972

7073
## Devcontainer Environment
7174

75+
> **Note**: Make sure to first set the environment variables file `.env` as outlined at the top of this document, otherwise building the docker image will fail.
76+
7277
### VSCode
7378

7479
You can either open to the docker folder directly from vscode and it'll prompt you to open the devcontainer, or use the supplied script below.

datajoint-workflow/{{cookiecutter.github_repo}}/docker/docker-compose-standard_workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# docker-compose up --build
22
version: "2.4"
33
services:
4-
standard_workflow:
4+
standard_worker:
55
build: # only necessary if rebuilding image
66
context: .
77
dockerfile: standard_worker.Dockerfile

0 commit comments

Comments
 (0)