Skip to content

Commit 47c8495

Browse files
authored
Struct mech stress (#32)
* Implemented base eq stress calc functions * check shape function added, types modified * added principal signed variants, voigt functions moved to utils * added missing tabulator in docstring * pr docstrings update, wip * Added math equations - wip * Added stress deviator calculation * wip - rewriting to n dimensional * wip - rewriting to n dimensional 2 * utils - voigt tested * mypy settings adjusted * voigt docstrings adjusted * added tensor to voigt * stress functions reworked, tests implemented * Fixed docstring spacing * Fixed bug in signed variants with array of shape (6,) * Added atol, rtol, modified singed variants docstrings, removed principal_directions
1 parent 393c5da commit 47c8495

File tree

12 files changed

+1212
-18
lines changed

12 files changed

+1212
-18
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ htmlcov/
4242

4343
# Generated by setuptools_scm
4444
src/fatpy/_version.py
45+
46+
# Pre-commit hooks
47+
.cache_pre_commit/

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
exclude: requirements-dev.txt
88
- id: check-added-large-files
99

1010
- repo: https://github.com/astral-sh/ruff-pre-commit
11-
rev: v0.11.6
11+
rev: v0.13.1
1212
hooks:
1313
- id: ruff
1414
args:
@@ -17,6 +17,6 @@ repos:
1717
- id: ruff-format
1818

1919
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: v1.15.0
20+
rev: v1.18.2
2121
hooks:
2222
- id: mypy

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

pyproject.toml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ classifiers = [
1818
]
1919

2020
dependencies = [
21-
"matplotlib>=3.10.0",
22-
"numpy>=2.2.2",
23-
"pandas>=2.2.3",
21+
"matplotlib>=3.10.6",
22+
"numpy>=2.3.3",
23+
"pandas>=2.3.2",
2424
# "scipy>=1.15.1",
2525
]
2626

@@ -33,18 +33,18 @@ dependencies = [
3333

3434
[tool.uv]
3535
dev-dependencies = [
36-
"mypy>=1.15.0",
37-
"ruff>=0.11.3",
38-
"pre-commit>=4.2.0",
39-
"pytest>=8.3.5",
40-
"pytest-cov>=6.0.0",
41-
"pytest-mock>=3.14.0",
36+
"mypy>=1.18.2",
37+
"ruff>=0.13.1",
38+
"pre-commit>=4.3.0",
39+
"pytest>=8.4.2",
40+
"pytest-cov>=7.0.0",
41+
"pytest-mock>=3.15.1",
4242
"pytest-mypy>=1.0.1",
43-
"pytest-ruff>=0.4.1",
43+
"pytest-ruff>=0.5",
4444
"mkdocs>=1.6.1",
45-
"mkdocs-material[imaging]>=9.5.15",
46-
"mkdocstrings[python]>=0.29.1",
47-
"mkdocs-autorefs>=1.0.0",
45+
"mkdocs-material[imaging]>=9.6.20",
46+
"mkdocstrings[python]>=0.30.1",
47+
"mkdocs-autorefs>=1.4.3",
4848
]
4949

5050
[tool.pytest.ini_options]
@@ -129,18 +129,23 @@ docstring-code-line-length = "dynamic"
129129

130130
[tool.ruff.lint.per-file-ignores]
131131
"__init__.py" = ["E402"]
132+
"tests/**" = [
133+
"D", # pydocstyle
134+
"B", # bugbear
135+
"S", # bandit
136+
]
132137

133138
[tool.mypy]
134139
python_version = "3.12"
135140
files = "src"
136141
strict = true
137-
ignore_missing_imports = true
138142
check_untyped_defs = true
139143
disallow_subclassing_any = true
140144
warn_unreachable = true
141145
warn_unused_configs = true
142146
show_error_context = true
143147
show_column_numbers = true
148+
disallow_untyped_decorators = false
144149

145150
[build-system]
146151
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2", "wheel"]

src/fatpy/py.typed

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)