Skip to content

Commit 78bc4f3

Browse files
committed
πŸ§‘β€πŸ’» devxp(devcontainer): add pre-commit hooks, remove deprecated linters
1 parent d26900a commit 78bc4f3

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

β€Ž.devcontainer/devcontainer.jsonβ€Ž

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,23 @@
33
"image": "nfcore/gitpod:latest",
44
"remoteUser": "gitpod",
55

6+
"postCreateCommand": "pre-commit install --install-hooks",
7+
68
// Configure tool-specific properties.
79
"customizations": {
810
// Configure properties specific to VS Code.
911
"vscode": {
1012
// Set *default* container specific settings.json values on container create.
1113
"settings": {
12-
"python.defaultInterpreterPath": "/opt/conda/bin/python",
13-
"python.linting.enabled": true,
14-
"python.linting.pylintEnabled": true,
15-
"python.formatting.autopep8Path": "/opt/conda/bin/autopep8",
16-
"python.formatting.yapfPath": "/opt/conda/bin/yapf",
17-
"python.linting.flake8Path": "/opt/conda/bin/flake8",
18-
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
19-
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
20-
"python.linting.pylintPath": "/opt/conda/bin/pylint"
14+
"python.defaultInterpreterPath": "/opt/conda/bin/python"
2115
},
2216

2317
// Add the IDs of extensions you want installed when the container is created.
24-
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
18+
"extensions": [
19+
"ms-python.python",
20+
"ms-python.vscode-pylance",
21+
"nf-core.nf-core-extensionpack"
22+
]
2523
}
2624
},
2725
"portsAttributes": {

0 commit comments

Comments
Β (0)