-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
163 lines (140 loc) · 3.66 KB
/
pyproject.toml
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[tool.poetry]
name = "flintpy-nmr"
packages = [{include = "*", from="src"}]
version = "0.1.1"
description = "Python implementation of FLINT algorithm for NMR relaxation data."
authors = ["Raquel Serial <raquelserial@gmail.com>"]
readme = "README.md"
homepage = "https://github.com/rserial/flintpy"
repository = "https://github.com/rserial/flintpy"
documentation = "https://flintpy.readthedocs.io"
keywords = ["flintpy", "flintpy-nmr", "nmr"]
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/rserial/flintpy/issues"
[tool.poetry.dependencies]
python = "<3.13,>=3.10"
numpy = "^2.0.1"
plotly = "^5.23.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.8.0"
invoke = "^2.2.0"
bump2version = "^1.0.1"
watchdog = {version = "^4.0.0", extras = ["watchmedo"]}
jupyterlab = "^4.2.4"
jupyterlab-templates = "^0.5.2"
[tool.poetry.group.test.dependencies]
pytest = "^8.3.2"
xdoctest = "^1.1.6"
coverage = {version = "^7.6.0", extras = ["toml"]}
pytest-cov = "^4.1.0"
[tool.poetry.group.linters.dependencies]
isort = "^5.13.2"
black = "^24.8.0"
ruff = "^0.5.6"
nbqa = "^1.8.5"
[tool.poetry.group.security.dependencies]
safety = "^3.0.1"
[tool.poetry.group.typing.dependencies]
mypy = "^1.11.1"
[tool.poetry.group.docs.dependencies]
sphinx = "^8.0.2"
recommonmark = "^0.7.1"
[tool.coverage.paths]
source = ["src", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["flintpy"]
[tool.coverage.report]
fail_under = 60
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug",
"if settings.DEBUG:",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == __main__:"
]
show_missing = true
[tool.coverage.html]
directory = "htmlcov"
[tool.ruff]
target-version = "py310"
output-format = "full"
line-length = 99
fix = true
extend-exclude = [
"docs/*",
]
[tool.ruff.lint]
select = [
"E", "F", "W", # flake8
"C", # mccabe
"I", # isort
"N", # pep8-naming
"D", # flake8-docstrings
"ANN", # flake8-annotations
"S", # flake8-bandit
"BLE", # flake8-blind-except
"B", # flake8-bugbear
"A", # flake8-builtins
"G", # flake8-logging-format
"ERA", # eradicate
"ISC", # flake8-implicit-str-concat
"RUF", # Ruff-specific rules
]
ignore = ["ANN101"]
unfixable = [
"ERA", # Don't remove commented-out code
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
".jupyter/jupyter_lab_config.py" = ["E501", "ERA001"]
"notebooks/*" = ["D100"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
known-first-party = ["flintpy"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 99
known_third_party = ["invoke", "nox", "nox_poetry"]
[tool.black]
line-length = 99
target-version = ["py310"]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["pytest.*", "invoke.*", "nox.*", "nox_poetry.*"]
allow_redefinition = false
check_untyped_defs = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = true
local_partial_types = true
strict_optional = true
strict_equality = true
no_implicit_optional = true
warn_unused_ignores = true
warn_unreachable = true
warn_no_return = true
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"