From d630a52deb0bbe607e16734679815639e518cc17 Mon Sep 17 00:00:00 2001 From: GitHub Date: Fri, 2 Feb 2024 12:32:29 +0000 Subject: [PATCH] MAINT: update pip constraints and pre-commit --- pre-commit/.pre-commit-config.yaml | 119 +++++++++++++++++++++++++++++ requirements.txt | 28 +++---- 2 files changed, 133 insertions(+), 14 deletions(-) create mode 100644 pre-commit/.pre-commit-config.yaml diff --git a/pre-commit/.pre-commit-config.yaml b/pre-commit/.pre-commit-config.yaml new file mode 100644 index 0000000..9227590 --- /dev/null +++ b/pre-commit/.pre-commit-config.yaml @@ -0,0 +1,119 @@ +ci: + autoupdate_commit_msg: "MAINT: autoupdate pre-commit hooks" + autoupdate_schedule: quarterly + skip: + - prettier + - taplo + +repos: + - repo: meta + hooks: + - id: check-hooks-apply + - id: check-useless-excludes + + - repo: https://github.com/ComPWA/policy + rev: 0.2.3 + hooks: + - id: check-dev-files + args: + - --no-cspell-update + - --no-github-actions + - --no-gitpod + - --no-prettierrc + - --no-pypi + - --no-python + - --no-ruff + - --no-version-branches + - --repo-name=ComPWA-demo + - --repo-title="ComPWA demos" + - id: colab-toc-visible + + - repo: https://github.com/nbQA-dev/nbQA + rev: 1.7.1 + hooks: + - id: nbqa-flake8 + - id: nbqa-isort + - id: nbqa-pyupgrade + args: + - --py36-plus + + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: check-case-conflict + - id: check-json + - id: check-merge-conflict + - id: check-toml + - id: check-vcs-permalinks + - id: check-yaml + - id: end-of-file-fixer + exclude: > + (?x)^( + \.cspell\.json + )$ + - id: mixed-line-ending + - id: trailing-whitespace + + - repo: https://github.com/psf/black + rev: 24.1.1 + hooks: + - id: black-jupyter + + - repo: https://github.com/asottile/blacken-docs + rev: 1.16.0 + hooks: + - id: blacken-docs + + - repo: https://github.com/streetsidesoftware/cspell-cli + rev: v8.3.0 + hooks: + - id: cspell + + - repo: https://github.com/editorconfig-checker/editorconfig-checker.python + rev: 2.7.3 + hooks: + - id: editorconfig-checker + name: editorconfig + alias: ec + + - repo: https://github.com/kynan/nbstripout + rev: 0.6.1 + hooks: + - id: nbstripout + args: + - --extra-keys + - | + cell.attachments + cell.metadata.code_folding + cell.metadata.id + cell.metadata.pycharm + cell.metadata.user_expressions + metadata.celltoolbar + metadata.colab.name + metadata.colab.provenance + metadata.interpreter + metadata.notify_time + metadata.toc + metadata.toc-autonumbering + metadata.toc-showcode + metadata.toc-showmarkdowntxt + metadata.toc-showtags + metadata.varInspector + metadata.vscode + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v4.0.0-alpha.8 + hooks: + - id: prettier + + - repo: https://github.com/ComPWA/mirrors-taplo + rev: v0.8.1 + hooks: + - id: taplo + + - repo: https://github.com/pappasam/toml-sort + rev: v0.23.1 + hooks: + - id: toml-sort + args: + - --in-place diff --git a/requirements.txt b/requirements.txt index a6fb5b2..6708ada 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,10 +16,10 @@ attrs==23.2.0 babel==2.14.0 backcall==0.2.0 beautifulsoup4==4.12.3 -black==23.12.1 +black==24.1.1 bleach==6.1.0 cachetools==5.3.2 -certifi==2023.11.17 +certifi==2024.2.2 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 @@ -52,21 +52,21 @@ jedi==0.19.1 jinja2==3.1.3 json5==0.9.14 jsonpointer==2.4 -jsonschema==4.21.0 +jsonschema==4.21.1 jsonschema-specifications==2023.12.1 jupyter-client==8.6.0 jupyter-core==5.7.1 jupyter-events==0.9.0 jupyter-lsp==2.2.2 jupyter-server==2.12.5 -jupyter-server-terminals==0.5.1 -jupyterlab==4.0.10 +jupyter-server-terminals==0.5.2 +jupyterlab==4.0.12 jupyterlab-code-formatter==2.2.1 jupyterlab-pygments==0.3.0 jupyterlab-server==2.25.2 jupyterlab-widgets==3.0.9 kiwisolver==1.4.5 -markupsafe==2.1.3 +markupsafe==2.1.4 matplotlib==3.7.4 matplotlib-inline==0.1.6 mistune==3.0.2 @@ -74,11 +74,11 @@ mypy-extensions==1.0.0 nbclient==0.9.0 nbconvert==7.14.2 nbformat==5.9.2 -nest-asyncio==1.5.9 +nest-asyncio==1.6.0 nodeenv==1.8.0 notebook-shim==0.2.3 numpy==1.24.4 -overrides==7.4.0 +overrides==7.7.0 packaging==23.2 pandocfilters==1.5.1 parso==0.8.3 @@ -87,12 +87,12 @@ pexpect==4.9.0 pickleshare==0.7.5 pillow==10.2.0 pkgutil-resolve-name==1.3.10 -platformdirs==4.1.0 -pluggy==1.3.0 +platformdirs==4.2.0 +pluggy==1.4.0 pre-commit==3.5.0 prometheus-client==0.19.0 prompt-toolkit==3.0.43 -psutil==5.9.7 +psutil==5.9.8 ptyprocess==0.7.0 pure-eval==0.2.2 pycparser==2.21 @@ -101,10 +101,10 @@ pyparsing==3.1.1 pyproject-api==1.6.1 python-dateutil==2.8.2 python-json-logger==2.0.7 -pytz==2023.3.post1 +pytz==2024.1 pyyaml==6.0.1 pyzmq==25.1.2 -referencing==0.32.1 +referencing==0.33.0 requests==2.31.0 rfc3339-validator==0.1.4 rfc3986-validator==0.1.1 @@ -123,7 +123,7 @@ traitlets==5.14.1 types-python-dateutil==2.8.19.20240106 typing-extensions==4.9.0 uri-template==1.3.0 -urllib3==2.1.0 +urllib3==2.2.0 virtualenv==20.25.0 wcwidth==0.2.13 webcolors==1.13