-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (108 loc) · 2.54 KB
/
pyproject.toml
File metadata and controls
121 lines (108 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "osmg"
version = "1.0.13"
description = "OpenSees Model Generator"
readme = "README.md"
license = { file = "LICENSE" }
authors = [
{ name = "John Vouvakis Manousakis" }
]
requires-python = ">=3.11"
dependencies = [
"descartes>=1.1.0",
"dill>=0.3.7",
"json-tricks>=3.17.3",
"matplotlib>=3.4.1",
"numpy>=1.20.2",
"openpyxl>=3.0.7",
"pandas>=1.2.4",
"plotly>=4.14.3",
"scipy>=1.9.0",
"shapely>=1.7.1",
"tqdm>=2.0.0",
"xlrd>=2.0.1",
"pydantic",
"pyarrow"
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
]
keywords = ["seismic", "structural engineering", "OpenSees", "modeling"]
[project.optional-dependencies]
dev = [
"codespell",
"coverage",
"jupyter",
"jupytext",
"mypy",
"types-requests",
"nbsphinx",
"pytest",
"pytest-cov",
"pytest-xdist",
"ruff",
"sphinx",
"sphinx-autoapi",
"sphinx-rtd-theme",
"sphinx_autodoc_typehints",
"xdoctest"
]
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
zip-safe = false
[tool.setuptools.packages]
find = { where = ["src"] }
[tool.setuptools.package-data]
osmg = ["**/*.json"]
[tool.mypy]
python_version = "3.11"
mypy_path = "src"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
ignore_missing_imports = true
implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = false
warn_unused_configs = true
no_implicit_reexport = true
namespace_packages = false
[tool.ruff]
line-length = 85
[tool.ruff.lint]
# Enable all known categories
select = ["ALL"]
ignore = [
"CPY001", "D211", "D212", "Q000", "Q003", "COM812", "D203",
"ISC001", "E501", "ERA001", "PGH003", "FIX002", "TD003", "S101",
"N801", "S311", "G004", "SIM102", "SIM108", "NPY002", "E501",
"T201", "DOC201"
]
preview = true
[tool.ruff.lint.per-file-ignores]
"docs/source/notebooks/*" = ["E402"]
"docs/source/*" = ["INP001"]
"src/osmg/tests/*" = ["D103", "PLR2004", "PLR6301"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pylint]
max-args = 15
max-locals = 50
max-returns = 11
max-branches = 50
max-statements = 150
max-bool-expr = 5
[tool.ruff.format]
quote-style = "single"
[tool.codespell]
ignore-words = ["ignore_words.txt"]
skip = ["*.html", "./htmlcov/*", "./docs/build/*"]