Skip to content

Commit

Permalink
feat: add template devcontainer (superlinear-ai#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber authored Dec 13, 2022
1 parent fbcc1d9 commit 51d206f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Poetry Cookiecutter",
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.10",
"onCreateCommand": "pip install commitizen cruft pre-commit && pre-commit install --install-hooks",
"remoteUser": "vscode",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"tamasfe.even-better-toml",
"visualstudioexptteam.vscodeintellicode"
],
"settings": {
"editor.formatOnSave": true,
"editor.rulers": [
100
],
"files.autoSave": "onFocusChange"
}
}
}
}
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# https://pre-commit.com
default_install_hook_types: [commit-msg, pre-commit]
default_stages: [commit, manual]
fail_fast: true
repos:
- repo: local
hooks:
- id: commitizen
name: commitizen
entry: cz check
args: [--commit-msg-file]
require_serial: true
language: system
stages: [commit-msg]

0 comments on commit 51d206f

Please sign in to comment.