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 Sep 27, 2023
1 parent 7ca7ea7 commit 5d20869
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ pyvenv*/
!.github/*.yml
!.github/*/*.yml
!.gitpod.yml
!.markdownlint.json
!.pre-commit-config.yaml
!.readthedocs.yml
!.vscode/*.json
Expand Down
1 change: 0 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ vscode:
extensions:
- charliermarsh.ruff
- christian-kohler.path-intellisense
- davidanson.vscode-markdownlint
- eamodio.gitlens
- editorconfig.editorconfig
- esbenp.prettier-vscode
Expand Down
14 changes: 6 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ repos:
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-black
additional_dependencies:
- black>=22.1.0
- id: nbqa-pyupgrade
args:
- --py37-plus
Expand All @@ -71,6 +68,11 @@ repos:
rev: 23.9.1
hooks:
- id: black
- id: black-jupyter
args:
- --line-length=85
types_or:
- jupyter

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
Expand Down Expand Up @@ -106,11 +108,6 @@ repos:
.*\.py
)$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.37.0
hooks:
- id: markdownlint

- repo: local
hooks:
- id: mypy
Expand All @@ -131,6 +128,7 @@ repos:
cell.attachments
cell.metadata.code_folding
cell.metadata.id
cell.metadata.pycharm
cell.metadata.user_expressions
metadata.celltoolbar
metadata.colab.name
Expand Down
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"recommendations": [
"charliermarsh.ruff",
"christian-kohler.path-intellisense",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
Expand All @@ -27,6 +26,7 @@
],
"unwantedRecommendations": [
"bungcip.better-toml",
"davidanson.vscode-markdownlint",
"ms-python.flake8",
"ms-python.isort",
"ms-python.pylint",
Expand Down
8 changes: 2 additions & 6 deletions docs/usage/dynamics/k-matrix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1492,9 +1492,7 @@
" if substitute_sqrt_rho:\n",
"\n",
" def rho_i(i):\n",
" return phsp_factor(\n",
" *sp.symbols(f\"s m_a{i} m_b{i}\", nonnegative=True)\n",
" ).doit()\n",
" return phsp_factor(*sp.symbols(f\"s m_a{i} m_b{i}\", nonnegative=True)).doit()\n",
"\n",
" expr = expr.xreplace(\n",
" {sp.sqrt(rho_i(i)): 1 for i in range(n_channels)}\n",
Expand Down Expand Up @@ -1593,9 +1591,7 @@
" kmatrix.NonRelativisticPVector,\n",
" kmatrix.RelativisticPVector,\n",
" }:\n",
" fig.suptitle(\n",
" f\"$P$-vector for {n_channels} channels and {n_poles} resonances\"\n",
" )\n",
" fig.suptitle(f\"$P$-vector for {n_channels} channels and {n_poles} resonances\")\n",
"\n",
" for ax in axes:\n",
" ax.set_xlim(x_min, x_max)\n",
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ ignore_missing_imports = true
module = ["sphinx.*"]

[tool.nbqa.addopts]
black = ["--line-length=85"]
ruff = [
"--extend-ignore=B018",
"--extend-ignore=C408",
Expand Down

0 comments on commit 5d20869

Please sign in to comment.