Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 7, 2024
1 parent e989995 commit f51b3e0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
23 changes: 12 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ci:
autoupdate_commit_msg: "MAINT: update pre-commit config file"
autoupdate_schedule: quarterly
skip:
- prettier
- taplo

repos:
Expand All @@ -10,17 +11,6 @@ repos:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace

- repo: https://github.com/ComPWA/repo-maintenance
rev: 0.1.11
hooks:
Expand All @@ -45,6 +35,17 @@ repos:
- id: nbqa-pyupgrade
args: [--py38-plus]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
Expand Down
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"black-formatter.importStrategy": "useBundled",
"diffEditor.experimental.showMoves": true,
"editor.formatOnSave": true,
"github-actions.workflows.pinned.workflows": [".github/workflows/ci.yml"],
"isort.args": ["--profile", "black"],
"livePreview.defaultPreviewPath": "docs/_build/html",
"multiDiffEditor.experimental.enabled": true,
"notebook.gotoSymbols.showAllSymbols": true,
"rewrap.wrappingColumn": 88
}
8 changes: 4 additions & 4 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: strong2020-salamanca
dependencies:
- python==3.10.*
- python==3.8.*
- pip
- pip:
- |
-c .constraints/py3.10.txt
-e .[dev]
- -c .constraints/py3.8.txt -e .[dev]
variables:
PRETTIER_LEGACY_CLI: "1"
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,15 @@ format = [
"isort",
]
jupyter = [
"isort",
"jupyterlab",
"jupyterlab-code-formatter",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-myst",
"python-lsp-ruff",
"python-lsp-server[flake8,rope]",
"python-lsp-server[rope]",
]
sty = [
"pre-commit",
Expand Down

0 comments on commit f51b3e0

Please sign in to comment.