Skip to content

Commit 70ff5b6

Browse files
Merge pull request #468 from Blueprints-org/dependabot/pip/dev-dependencies-5fa65e3a85
Bump the dev-dependencies group with 2 updates
2 parents 3e86dd5 + 2e75607 commit 70ff5b6

File tree

9 files changed

+17
-19
lines changed

9 files changed

+17
-19
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
repos:
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: v0.8.4
20+
rev: v0.9.4
2121
hooks:
2222
# Run the linter.
2323
- id: ruff
@@ -26,7 +26,7 @@ repos:
2626
- id: ruff-format
2727

2828
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: v1.14.0
29+
rev: v1.14.1
3030
hooks:
3131
- id: mypy
3232
language_version: python3.12

blueprints/checks/nominal_concrete_cover/nominal_concrete_cover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def latex(self) -> str:
169169
r"Nominal concrete cover according to art. 4.4.1 (c_{nom})",
170170
"Minimum cover with regard to casting surface according to art. 4.4.1.3 (4)",
171171
),
172-
f"= {latex_max_curly_brackets(self.c_nom().latex().result,self.minimum_cover_with_regard_to_casting_surface(),)} = {self.value()} mm",
172+
f"= {latex_max_curly_brackets(self.c_nom().latex().result, self.minimum_cover_with_regard_to_casting_surface())} = {self.value()} mm",
173173
"",
174174
"Where:",
175175
f"{self.c_nom().latex().return_symbol} = {self.c_nom().latex().equation.replace('min', 'min,total')}"

blueprints/codes/eurocode/nen_en_1992_1_1_c2_2011/chapter_5_structural_analysis/formula_5_18.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def latex(self) -> LatexFormula:
8585
equation=r"F_{V,Ed} \leq \frac{n_s}{n_s + 1.6} \cdot \frac{\sum E_{cd} \cdot I_c}{L^2}",
8686
numeric_equation=(
8787
rf"{self.left_hand_side:.3f}"
88-
rf"\leq \frac{{{self.n_s}}}{{{self.n_s + 1.6}}} \cdot \frac{{\sum {self.e_cd} \cdot {self.i_c}}}{{{self.length ** 2}}}"
88+
rf"\leq \frac{{{self.n_s}}}{{{self.n_s + 1.6}}} \cdot \frac{{\sum {self.e_cd} \cdot {self.i_c}}}{{{self.length**2}}}"
8989
),
9090
comparison_operator_label=r"\rightarrow",
9191
)

blueprints/codes/eurocode/nen_en_1992_1_1_c2_2011/chapter_8_detailing_of_reinforcement_and_prestressing_tendons/formula_8_10.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def latex(self) -> LatexFormula:
174174
return LatexFormula(
175175
return_symbol=r"\alpha_6",
176176
result=f"{self:.2f}",
177-
equation=f'{latex_max_curly_brackets(latex_min_curly_brackets(argument_1_formula, "1.5"), "1")}',
178-
numeric_equation=f'{latex_max_curly_brackets(latex_min_curly_brackets(numerical_argument_1, "1.5"), "1")}',
177+
equation=f"{latex_max_curly_brackets(latex_min_curly_brackets(argument_1_formula, '1.5'), '1')}",
178+
numeric_equation=f"{latex_max_curly_brackets(latex_min_curly_brackets(numerical_argument_1, '1.5'), '1')}",
179179
comparison_operator_label="=",
180180
)

blueprints/codes/eurocode/nen_en_1993_1_1_c2_a1_2016/chapter_2_basic_of_design/formula_2_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ def latex(self) -> LatexFormula:
4141
return_symbol=r"R_{k}",
4242
result=f"{self:.2f}",
4343
equation=r"R_d \cdot \gamma_{Mi}",
44-
numeric_equation=rf"{self.r_d :.2f} \cdot {self.gamma_mi :.2f}",
44+
numeric_equation=rf"{self.r_d:.2f} \cdot {self.gamma_mi:.2f}",
4545
comparison_operator_label="=",
4646
)

blueprints/structural_sections/concrete/reinforced_concrete_sections/plotters/rectangular.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,7 @@ def _add_stirrups_to_legend(self) -> str:
346346
if self.cross_section.stirrups:
347347
stirrups_text += f"\nStirrups ({sum(stirrup.as_w for stirrup in self.cross_section.stirrups):.0f} mm²/m):"
348348
for stirrup in self.cross_section.stirrups:
349-
stirrups_text += (
350-
f"\n{stirrup.diameter}-{stirrup.distance} mm (b:{stirrup.ctc_distance_legs:.0f} mm) ({stirrup.as_w:.0f} " f"mm²/m)"
351-
)
349+
stirrups_text += f"\n{stirrup.diameter}-{stirrup.distance} mm (b:{stirrup.ctc_distance_legs:.0f} mm) ({stirrup.as_w:.0f} mm²/m)"
352350
return stirrups_text
353351

354352
def _add_longitudinal_rebars_to_legend(self) -> str:

blueprints/utils/abc_enum_meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ def __new__(cls, *args, **kwarg) -> type:
2525
missing = ", ".join(f"{method!r}" for method in abstract_methods)
2626
plural = "s" if len(abstract_methods) > 1 else ""
2727
raise TypeError(
28-
f"Can't instantiate abstract class {abstract_enum_cls.__name__!r}" f" without an implementation for abstract method{plural} {missing}"
28+
f"Can't instantiate abstract class {abstract_enum_cls.__name__!r} without an implementation for abstract method{plural} {missing}"
2929
)
3030
return abstract_enum_cls

requirements_dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
mypy==1.14.1
2-
ruff==0.8.4
3-
pre-commit==4.0.1
2+
ruff==0.9.4
3+
pre-commit==4.1.0
44
pytest==8.3.4
55
pytest-cov==6.0.0
66
pytest-describe==2.2.0

tests/checks/nominal_concrete_cover/test_constants.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ def test_instantiation(self) -> None:
5353
"""Test that the class can be instantiated."""
5454
constants = DummyConstants()
5555
assert constants.COVER_INCREASE_FOR_UNEVEN_SURFACE == 5
56-
assert {
56+
assert constants.COVER_INCREASE_FOR_ABRASION_CLASS == {
5757
"NA": 0,
5858
"XM1": 5,
5959
"XM2": 10,
6060
"XM3": 15,
61-
} == constants.COVER_INCREASE_FOR_ABRASION_CLASS
61+
}
6262
assert constants.DEFAULT_DELTA_C_DEV == 5
6363
assert constants.CODE_SUFFIX == "DUMMY"
6464
assert constants.minimum_cover_with_regard_to_casting_surface(0, CastingSurface.PERMANENTLY_EXPOSED) == 0
@@ -72,12 +72,12 @@ def test_instantiation(self) -> None:
7272
"""Test that the class can be instantiated."""
7373
constants = NominalConcreteCoverConstants2011C2()
7474
assert constants.COVER_INCREASE_FOR_UNEVEN_SURFACE == 5
75-
assert {
75+
assert constants.COVER_INCREASE_FOR_ABRASION_CLASS == {
7676
AbrasionClass.NA: 0,
7777
AbrasionClass.XM1: 5,
7878
AbrasionClass.XM2: 10,
7979
AbrasionClass.XM3: 15,
80-
} == constants.COVER_INCREASE_FOR_ABRASION_CLASS
80+
}
8181
assert constants.DEFAULT_DELTA_C_DEV == 10
8282

8383
def test_instantiation_with_custom_values(self) -> None:
@@ -94,12 +94,12 @@ def test_instantiation_with_custom_values(self) -> None:
9494
def test_post_init(self) -> None:
9595
"""Test that the post-init method sets default values."""
9696
constants = NominalConcreteCoverConstants2011C2()
97-
assert {
97+
assert constants.COVER_INCREASE_FOR_ABRASION_CLASS == {
9898
AbrasionClass.NA: 0,
9999
AbrasionClass.XM1: 5,
100100
AbrasionClass.XM2: 10,
101101
AbrasionClass.XM3: 15,
102-
} == constants.COVER_INCREASE_FOR_ABRASION_CLASS
102+
}
103103

104104
@pytest.mark.parametrize(
105105
("c_min_dur", "casting_surface", "expected_result"),

0 commit comments

Comments
 (0)