Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ docstring-convention = google
per-file-ignores = tests/*:S101,__init__.py:F401,post.py:C901
rst-roles = class,const,func,meth,mod,ref
rst-directives = deprecated
pytest-fixture-no-parentheses = True
pytest-mark-no-parentheses = True
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ repos:
hooks:
- id: nbstripout
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.8.4
rev: 1.9.0
hooks:
- id: nbqa-black
additional_dependencies: [black==24.2.0]
additional_dependencies: [black==24.8.0]
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==3.15.1]
additional_dependencies: [pyupgrade==3.17.0]
args: ["--py39-plus"]
- id: nbqa-isort
additional_dependencies: [isort==5.13.2]
Expand Down
13 changes: 6 additions & 7 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
furo==2024.01.29
ipykernel==6.29.3
furo==2024.8.6
ipykernel==6.29.5
ipython==8.18.1
ipywidgets==8.1.2
nbconvert==7.16.2
nbsphinx==0.9.3
sphinx==7.2.6
sphinx-click==5.1.0
nbconvert==7.16.4
nbsphinx==0.9.5
sphinx==8.0.2
sphinx-click==6.0.0
sphinx-copybutton==0.5.2
sphinxext-opengraph==0.9.1
2 changes: 0 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def docs_build(session: Session) -> None:
"furo",
"ipykernel",
"ipython",
"ipywidgets",
"nbconvert",
"nbsphinx",
"sphinx",
Expand Down Expand Up @@ -268,7 +267,6 @@ def docs(session: Session) -> None:
"furo",
"ipykernel",
"ipython",
"ipywidgets",
"nbconvert",
"nbsphinx",
"sphinx",
Expand Down
367 changes: 194 additions & 173 deletions poetry.lock

Large diffs are not rendered by default.

60 changes: 29 additions & 31 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ scipy = "^1.12.0"
matplotlib = "^3.8.3"
shapely = "^2.0.3"
cytriangle = "^1.0.1"
rich = "^13.7.1"
rich = { extras = ["jupyter"], version = "^13.7.1"}
click = "^8.1.7"
more-itertools = "^10.2.0"
numba = { version = "^0.59.0", optional = true }
Expand All @@ -67,36 +67,34 @@ mkl = { version = "==2023.2.0", optional = true }
tbb = { version = "==2021.10.0", optional = true }

[tool.poetry.group.dev.dependencies]
black = "^24.2.0"
coverage = { extras = ["toml"], version = "^7.4.3" }
darglint = "^1.8.1"
flake8 = "^7.0.0"
flake8-bugbear = "^24.2.6"
flake8-docstrings = "^1.7.0"
flake8-pytest-style = "^1.7.2"
flake8-rst-docstrings = "^0.3.0"
furo = "^2024.01.29"
ipykernel = "^6.29.3"
ipython = "^8.18.1" # 8.19 and above drops 3.9 support
ipywidgets = "^8.1.2"
isort = "^5.13.2"
mypy = "^1.9.0"
nbconvert = "^7.16.2"
nbsphinx = "^0.9.3"
notebook = "^7.1.1"
pep8-naming = "^0.13.3"
pre-commit = "^3.6.2"
pre-commit-hooks = "^4.5.0"
Pygments = "^2.17.2"
pytest = "^8.0.2"
pytest-benchmark = { extras = ["histogram"], version = "^4.0.0" }
pytest-check = "^2.3.1"
pyupgrade = "^3.15.1"
sphinx = "^7.2.6"
sphinx-autobuild = "^2024.2.4"
sphinx-click = "^5.1.0"
sphinx-copybutton = "^0.5.2"
sphinxext-opengraph = "^0.9.1"
black = "==24.8.0"
coverage = { extras = ["toml"], version = "==7.6.1" }
darglint = "==1.8.1"
flake8 = "==7.1.1"
flake8-bugbear = "==24.8.19"
flake8-docstrings = "==1.7.0"
flake8-pytest-style = "==2.0.0"
flake8-rst-docstrings = "==0.3.0"
furo = "==2024.8.6"
ipykernel = "==6.29.5"
ipython = "==8.18.1" # 8.19 and above drops 3.9 support
isort = "==5.13.2"
mypy = "==1.11.2"
nbconvert = "==7.16.4"
nbsphinx = "==0.9.5"
notebook = "==7.2.2"
pep8-naming = "==0.14.1"
pre-commit = "==3.8.0"
pre-commit-hooks = "==4.6.0"
pytest = "==8.3.3"
pytest-benchmark = { extras = ["histogram"], version = "==4.0.0" }
pytest-check = "==2.4.1"
pyupgrade = "==3.17.0"
sphinx = "==7.4.7"
sphinx-autobuild = "==2024.10.3"
sphinx-click = "==6.0.0"
sphinx-copybutton = "==0.5.2"
sphinxext-opengraph = "==0.9.1"

[tool.poetry.extras]
dxf = ["cad-to-shapely"]
Expand Down
4 changes: 1 addition & 3 deletions src/sectionproperties/post/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,7 @@ def plotting_context(
render: bool = True,
axis_index: int | tuple[int, int] | None = None,
**kwargs: Any,
) -> Generator[
tuple[matplotlib.figure.Figure, matplotlib.axes.Axes | Any | None], None, None
]:
) -> Generator[tuple[matplotlib.figure.Figure, matplotlib.axes.Axes | Any | None]]:
"""Executes code required to set up a matplotlib figure.

Args:
Expand Down