-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (88 loc) · 2.59 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (88 loc) · 2.59 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
[project]
name = "crunchflow"
version = "2.1.3"
description = "A Python toolbox for working with the CrunchFlow reactive transport code"
authors = [{ name = "Zach Perzan", email = "zach.perzan@unlv.edu" }]
requires-python = ">=3.10, <4.0"
readme = "README.md"
license = "GPL-3.0-or-later"
license-files = ["LICENSE"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"numpy>=2.0.0,<3",
"matplotlib>=3.7.0,<4",
"pandas>=2.2.2,<3",
]
[dependency-groups]
test = ["pytest>=8.2.2,<10"]
lint = ["ruff>=0.9.6,<0.10"]
[tool.uv]
default-groups = ["lint"]
[tool.uv.build-backend]
module-root = ""
[build-system]
requires = ["uv_build>=0.9.25,<0.10.0"]
build-backend = "uv_build"
[tool.ruff]
line-length = 120
indent-width = 4
exclude = [
".idea",
".ipynb_checkpoints",
".git",
".tox",
".pytest_cache",
".pytype",
".ruff_cache",
"build",
"dist"
]
# Target version
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # PEP8 naming convetions
"D" # pydocstyle
]
# Ignore a few rules
ignore = [
"N801", # Ignore required camelcase for class names
"N802", # Ignore function names should be lowercase
"D205", # Ignore 1 blank line required between summary line and description
"D400", # Ignore first docstring line should end with a period
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"] # Ignore docstring errors in tests
"docs/*" = ["D"] # Ignore docstring errors in docs
"crunchflow/input/databases/*" = ["N815", "N806"] # Ignore logK case errors in database modules
"__init__.py" = ["D"] # Ignore docstring errors in __init__.py
"crunchflow/output/main_output.py" = ["F821"] # Ignore undefined name errors in main_output.py
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
# Indent with spaces rather than tabs
indent-style = "space"
# Respect magic trailing commas
skip-magic-trailing-comma = false
# Automatically detect the appropriate line ending.
line-ending = "auto"
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"