Skip to content

Commit 7253d02

Browse files
Run pre-commit, uv lock
1 parent 224d3a4 commit 7253d02

File tree

9 files changed

+1235
-1118
lines changed

9 files changed

+1235
-1118
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
run: uv python install ${{ matrix.python }}
9999

100100
- name: Install test dependencies
101-
run: uv sync -p ${{ matrix.python }} --frozen --no-group dev --no-group docs
101+
run: uv sync -p ${{ matrix.python }} --frozen --no-group dev --no-group docs
102102
--no-group lint
103103

104104
- name: Run pytest
@@ -129,7 +129,7 @@ jobs:
129129
run: uv python install ${{ env.DEFAULT_PYTHON_VERSION }}
130130

131131
- name: Install dependencies
132-
run: uv sync -p ${{ env.DEFAULT_PYTHON_VERSION }} --frozen --no-group dev
132+
run: uv sync -p ${{ env.DEFAULT_PYTHON_VERSION }} --frozen --no-group dev
133133
--no-group lint --no-group test
134134

135135
- name: Install pandoc
@@ -184,4 +184,4 @@ jobs:
184184
- name: Upload coverage report
185185
uses: codecov/codecov-action@v5
186186
with:
187-
token: ${{ secrets.CODECOV_TOKEN }}
187+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
- name: Run Labeler
1616
uses: crazy-max/ghaction-github-labeler@v5
1717
with:
18-
skip-delete: true
18+
skip-delete: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ jobs:
6767
publish: ${{ steps.check-version.outputs.tag != '' }}
6868
tag: ${{ steps.check-version.outputs.tag }}
6969
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ repos:
1515
- repo: https://github.com/kynan/nbstripout
1616
rev: 0.8.1
1717
hooks:
18-
- id: nbstripout
18+
- id: nbstripout

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ build:
1717
- uv sync -p 3.13 --frozen --no-group dev --no-group lint --no-group test
1818
build:
1919
html:
20-
- uv run -p 3.13 --no-sync sphinx-build -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
20+
- uv run -p 3.13 --no-sync sphinx-build -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html

docs/_static/animation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
"\n",
216216
" # log progress\n",
217217
" if idx % 20 == 0:\n",
218-
" print(f\"{idx/(n_kappa-1)*100:.2f}% complete\")\n",
218+
" print(f\"{idx / (n_kappa - 1) * 100:.2f}% complete\")\n",
219219
"\n",
220220
"print(\"100% complete\")"
221221
]

docs/examples/nzs3101.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@
606606
" progress_bar=False,\n",
607607
" )\n",
608608
" results_bb.append(f_bb_res)\n",
609-
" labels.append(f\"N* = {n_design/1e3}\")\n",
609+
" labels.append(f\"N* = {n_design / 1e3}\")\n",
610610
"\n",
611611
"# plot all the M/N and M/M diagrams on one plot\n",
612612
"fig = plt.figure(figsize=(16, 10))\n",
@@ -914,7 +914,7 @@
914914
"\n",
915915
"print(\"Probable Moment Capacity from ultimate strength check: -\")\n",
916916
"print(\n",
917-
" f\"Mp = {f_ult_res.m_x / 1e6:.2f} kN.m at an axial load of {n_design/1e3:.2f} kN\\n\"\n",
917+
" f\"Mp = {f_ult_res.m_x / 1e6:.2f} kN.m at an axial load of {n_design / 1e3:.2f} kN\\n\"\n",
918918
")\n",
919919
"print(\"Maximum Moment Capacity from moment-curvature analysis: -\")\n",
920920
"print(f\"Maximum Moment = {max_moment:.2f} kN.m\")"
@@ -978,7 +978,7 @@
978978
"print(f\"Effective depth of tension reinforcement = {eff_depth:.2f} mm\")\n",
979979
"print(f\"Probable Curvature Capacity = {phi_cap:.8f} rads\")\n",
980980
"print(f\"Maximum Curvature from moment-curvature analysis = {max_curvature:.8f} rads\")\n",
981-
"print(f\"Ratio of results = {phi_cap/max_curvature:.2f}\")"
981+
"print(f\"Ratio of results = {phi_cap / max_curvature:.2f}\")"
982982
]
983983
},
984984
{

src/concreteproperties/prestressed_section.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def calc_min_stress():
305305
if cr_stress_res._m_net:
306306
m_net = cr_stress_res._m_net
307307
# if we guess the bending direction wrong
308-
if m_net > 0 and m_net_guess < 0 or m_net < 0 and m_net_guess > 0:
308+
if (m_net > 0 and m_net_guess < 0) or (m_net < 0 and m_net_guess > 0):
309309
# change bending direction
310310
theta -= np.pi
311311

uv.lock

Lines changed: 1223 additions & 1106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)