Skip to content

Commit

Permalink
ci: add .prettierignore to cspell config ignores
Browse files Browse the repository at this point in the history
* ci: autoupdate pre-commit hooks
* ci: do not format Jupyter notebooks with Prettier
* ci: recommend GitHub Actions VSCode extension
* ci: remove outdated VSCode settings
  • Loading branch information
redeboer committed Apr 4, 2022
1 parent dedf113 commit 07def0b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
".gitpod.*",
".mypy.ini",
".pre-commit-config.yaml",
".prettierignore",
".pydocstyle*",
".pylintrc",
".readthedocs.yml",
Expand Down
1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ vscode:
extensions:
- bungcip.better-toml
- christian-kohler.path-intellisense
- cschleiden.vscode-github-actions
- davidanson.vscode-markdownlint
- eamodio.gitlens
- editorconfig.editorconfig
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black

Expand All @@ -46,13 +46,13 @@ repos:
- id: blacken-docs

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.0.118
rev: 0.0.119
hooks:
- id: check-dev-files
- id: format-setup-cfg

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v5.8.4
rev: v5.9.0
hooks:
- id: cspell

Expand All @@ -76,7 +76,7 @@ repos:
- id: markdownlint

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.5.1
rev: v2.6.2
hooks:
- id: prettier

Expand All @@ -86,12 +86,12 @@ repos:
- id: pydocstyle

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.227
rev: v1.1.234
hooks:
- id: pyright

- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.31.1
hooks:
- id: pyupgrade
args:
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.ipynb
.cspell.json
LICENSE
1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"bungcip.better-toml",
"christian-kohler.path-intellisense",
"cschleiden.vscode-github-actions",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"editorconfig.editorconfig",
Expand Down
15 changes: 5 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
"[bibtex]": {
"editor.formatOnSave": false
},
"[ipynb]": {
"editor.formatOnSave": false
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand Down Expand Up @@ -37,12 +34,13 @@
"**/.tox/**": true
},
"git.rebaseWhenSync": true,
"githubPullRequests.telemetry.enabled": false,
"gitlens.advanced.telemetry.enabled": false,
"github-actions.workflows.pinned.workflows": [
".github/workflows/ci-tests.yml",
".github/workflows/ci-style.yml"
],
"python.analysis.autoImportCompletions": false,
"python.analysis.diagnosticMode": "workspace",
"python.formatting.provider": "black",
"python.languageServer": "Pylance",
"python.linting.banditEnabled": false,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
Expand All @@ -51,8 +49,6 @@
"python.linting.pylamaEnabled": false,
"python.linting.pylintCategorySeverity.refactor": "Information",
"python.linting.pylintEnabled": true,
"python.linting.pylintUseMinimalCheckers": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestArgs": ["--color=no", "--no-cov", "-vv"],
"python.testing.pytestEnabled": true,
"python.testing.unittestEnabled": false,
Expand All @@ -63,6 +59,5 @@
".constraints/*.txt": true,
"src/repoma/.github/ISSUE_TEMPLATE": true
},
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false
"telemetry.telemetryLevel": "off"
}
1 change: 1 addition & 0 deletions tests/check_dev_files/test_gitpod.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def test_extract_extensions():
# cspell:disable
"bungcip.better-toml",
"christian-kohler.path-intellisense",
"cschleiden.vscode-github-actions",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"editorconfig.editorconfig",
Expand Down

0 comments on commit 07def0b

Please sign in to comment.