Skip to content

Commit

Permalink
STY: use black default for max line len of 88 symbols and reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Jul 18, 2023
1 parent 81026bb commit 67a258e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: black-jupyter
language_version: python3.10
exclude: ^(.*\.py)
args: [--line-length=78]
args: [--line-length=88]
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
Expand Down
8 changes: 2 additions & 6 deletions docs/source/notebooks/elements.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,9 @@
"classes, objects = create_classes(connection.data, connection=connection)\n",
"globals().update(**objects)\n",
"\n",
"print(\n",
" f\"Number of points before change: {data['models']['simulation']['npoint']}\"\n",
")\n",
"print(f\"Number of points before change: {data['models']['simulation']['npoint']}\")\n",
"data[\"models\"][\"simulation\"][\"npoint\"] = 1000000\n",
"print(\n",
" f\"Number of points after change: {data['models']['simulation']['npoint']}\"\n",
")\n",
"print(f\"Number of points after change: {data['models']['simulation']['npoint']}\")\n",
"aperture.horizontalSize.kind = \"hinted\"\n",
"w9.duration.kind = \"hinted\"\n",
"\n",
Expand Down

0 comments on commit 67a258e

Please sign in to comment.