-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
87 lines (75 loc) · 2.26 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
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
name = "tbparser"
description = "A Tensorboard log parser"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
keywords = ["tensorboard"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
authors = [{ name = "Vadim Velicodnii", email = "vadim@velikodniy.name" }]
requires-python = ">= 3.9"
dependencies = [
"numpy>1.15.4",
"imageio>=2.5.0",
"tensorboard>=1.13.1",
"crc32c>=1.7",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/velikodniy/tbparser"
Repository = "https://github.com/velikodniy/tbparser.git"
Issues = "https://github.com/velikodniy/tbparser/issues"
[tool.hatch.version]
path = "tbparser/version.py"
[[tool.hatch.envs.hatch-test.matrix]]
dependencies = ["pytest"]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.default]
python = "3.9"
dependencies = ["pytest", "pyright"]
[tool.pytest.ini_options]
addopts = "--doctest-modules"
doctest_optionflags = [
"NORMALIZE_WHITESPACE",
"IGNORE_EXCEPTION_DETAIL",
"NUMBER",
]
minversion = "7.0"
[tool.pyright]
include = ["tbparser", "tests"]
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # missing docstrings and formatting
"ANN", # missing type annotations
"COM", # trailing commas
"CPY", # missing copyright notice
"ISC001", # don't check for implicitly concatenated strings
"FBT", # bool-typed positional arguments
"EM", # exceptions must not use string literals
"TRY003", # long messages outside the exception class
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101"]
[tool.ruff.lint.isort]
force-single-line = true
force-sort-within-sections = true
order-by-type = false
[tool.ruff.lint.pydocstyle]
convention = "google"