Skip to content

Commit

Permalink
MAINT: update pip constraints and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow authored Feb 2, 2024
1 parent fe9fa59 commit d630a52
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 14 deletions.
119 changes: 119 additions & 0 deletions pre-commit/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 14 additions & 14 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -52,33 +52,33 @@ 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
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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d630a52

Please sign in to comment.