Skip to content

Commit ba017be

Browse files
dependabot[bot]A-CGraypre-commit-ci-lite[bot]
authored
Bump black from 23.12.0 to 24.1.1 (#72)
* Bump black from 23.12.0 to 24.1.1 Bumps [black](https://github.com/psf/black) from 23.12.0 to 24.1.1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@23.12.0...24.1.1) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Update .pre-commit-config.yaml * [pre-commit.ci lite] apply automatic fixes --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alasdair Gray <[email protected]> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 0a6cf83 commit ba017be

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: check-merge-conflict
1313
- id: debug-statements
1414
- repo: https://github.com/psf/black
15-
rev: 23.12.0
15+
rev: 24.1.1
1616
hooks:
1717
- id: black
1818
language_version: python3

FEMpy/Constitutive/StressModels/VonMises.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,4 @@ def vonMises3D(stresses):
8686
s12 = stresses[:, 3]
8787
s13 = stresses[:, 4]
8888
s23 = stresses[:, 5]
89-
return np.sqrt(
90-
0.5 * ((s11 - s22) ** 2 + (s22 - s33) ** 2 + (s33 - s11) ** 2) + 3 * (s12**2 + s13**2 + s23**2)
91-
)
89+
return np.sqrt(0.5 * ((s11 - s22) ** 2 + (s22 - s33) ** 2 + (s33 - s11) ** 2) + 3 * (s12**2 + s13**2 + s23**2))

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"mkdocstrings[python]",
3535
"pytkdocs[numpy-style]",
3636
],
37-
"dev": ["parameterized", "testflo", "black==23.12.0", "flake8==6.1.0", "pre-commit"],
37+
"dev": ["parameterized", "testflo", "black==24.1.1", "flake8==6.1.0", "pre-commit"],
3838
},
3939
classifiers=[
4040
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)