Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (101 loc) · 2.82 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (101 loc) · 2.82 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
[build-system]
requires = ["setuptools>=64.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pyglenn"
dynamic = ["version"]
description = "Thermochemical properties calculator — computes Cp(T), H°(T), S°(T) from NASA polynomial coefficients stored in SQLite"
readme = "README.md"
license = "MIT"
authors = [
{name = "Dr. Reginaldo G. Leão Jr.", email = "prof.reginaldo.leao@gmail.com"}
]
keywords = ["thermochemistry", "thermodynamics", "NASA-polynomials", "heat-capacity", "enthalpy", "entropy"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
requires-python = ">=3.9"
dependencies = []
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.5.0",
"mypy>=1.10.0",
"pre-commit>=3.7.0",
]
examples = [
"jupyterlab>=4.0",
"matplotlib>=3.7",
]
doc = [
"sphinx>=7.0",
"renku-sphinx-theme>=0.5.0",
"myst-nb>=1.1.0",
"matplotlib>=3.7",
]
[project.urls]
Homepage = "https://profleao.github.io/pyglenn"
Repository = "https://github.com/ProfLeao/pyglenn"
Issues = "https://github.com/ProfLeao/pyglenn/issues"
[project.scripts]
pyglenn = "pyglenn.cli:main"
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "pyglenn.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
pyglenn = ["data/thermo.inp", "data/thermo.db"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
[tool.ruff]
target-version = "py39"
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"T20", # flake8-print (keep print in CLI only)
]
[tool.ruff.lint.per-file-ignores]
"cli.py" = ["T201"] # allow print() in CLI module
"scripts/rebuild_database.py" = ["T201"] # allow print() in rebuild script
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.mypy]
python_version = "3.10"
strict = false
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
exclude = ["tests/"]
[tool.coverage.run]
source = ["src/pyglenn"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
"assert False",
"raise NotImplementedError",
]