Skip to content

Commit

Permalink
DX: synchronize ComPWA developer setup
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 9, 2023
1 parent 428d208 commit f337b45
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-json
Expand All @@ -22,8 +22,18 @@ repos:
types_or: [jupyter]

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.1.0rc0
rev: 0.1.0rc5
hooks:
- id: check-dev-files
args:
- --ignore-author
- --no-github-actions
- --no-gitpod
- --no-prettierrc
- --no-python
- --no-ruff
- --no-version-branches
- --repo-name=strong2020-salamanca
- id: colab-toc-visible

- repo: https://github.com/nbQA-dev/nbQA
Expand All @@ -34,6 +44,13 @@ repos:
- id: nbqa-pyupgrade
args: [--py37-plus]

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.2
hooks:
- id: editorconfig-checker
name: editorconfig
alias: ec

- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
Expand All @@ -42,15 +59,13 @@ repos:
- --extra-keys
- |
cell.attachments
cell.id
cell.metadata.code_folding
cell.metadata.colab
cell.metadata.editable
cell.metadata.executionInfo
cell.metadata.id
cell.metadata.outputId
cell.metadata.pycharm
cell.metadata.user_expressions
metadata.celltoolbar
metadata.colab.name
metadata.colab.provenance
metadata.interpreter
metadata.notify_time
metadata.toc
Expand Down
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"executablebookproject.myst-highlight",
"garaioag.garaio-vscode-unwanted-recommendations",
"github.vscode-github-actions",
"github.vscode-pull-request-github",
"mhutchie.git-graph",
Expand All @@ -15,5 +16,10 @@
"stkb.rewrap",
"tyriar.sort-lines",
"yzhang.markdown-all-in-one"
],
"unwantedRecommendations": [
"davidanson.vscode-markdownlint",
"ms-python.mypy-type-checker",
"travisillig.vscode-json-stable-stringify"
]
}

0 comments on commit f337b45

Please sign in to comment.