-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
115 lines (88 loc) · 2.98 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
[project]
name = "hydra-callbacks"
description = "A collection of usefull hydra callbacks for hydra configuration"
readme = "README.md"
dynamic = ["version"]
requires-python = ">=3.8"
license = {file = "LICENSE.txt"}
keywords = ["hydra", "configuration", "callback"]
authors = [
{name = "Pierre-Antoine Comby", email = "[email protected]" } # Optional
]
classifiers = [ # Optional
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
# Specify the Python versions you support here. In particular, ensure
# that you indicate you support Python 3. These classifiers are *not*
# checked by "pip install". See instead "python_requires" below.
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"hydra-core",
"GitPython",
"pandas",
"numpy",
"fastparquet",
"psutil",
]
[project.optional-dependencies]
dev = ["black", "isort", "ruff"]
docs = ["mkdocs", "mkdocs-material", "mkdocstrings[python]"]
test = ["pytest", "pytest-cov", "pytest-xdist", "pytest-sugar"]
[project.urls]
"Homepage" = "https://github.com/paquiteau/hydra-callbacks"
"Bug Reports" = "https://github.com/paquiteau/hydra-callbacks/issues"
"Sources" = "https://github.com/paquiteau/hydra-callbacks"
[build-system]
# These are the assumed default build requirements from pip:
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
requires = ["setuptools>=43.0.0", "setuptools_scm[toml]>=6.2", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where=["src"]
[tool.setuptools_scm]
write_to = "src/hydra_callbacks/_version.py"
version_scheme = "python-simplified-semver"
local_scheme="no-local-version"
fallback_version="v99-dev"
# Formatting using black.
[tool.black]
[tool.isort]
profile="black"
[tool.ruff]
src = ["src", "tests"]
select = ["E", "F", "B", "Q", "D", "UP", "ANN"]
ignore = [
"ANN101", # missing type annotation for self
"ANN102", # missing type annotation for cls in classmethod.
"ANN204", # missing return type for __init__
"D105", # missing docstring in magic method
"D404", # Imperative mode is not necessary everywhere, trust me.
]
[tool.ruff.pydocstyle]
convention = "numpy"
#ignore = ["D107", "D203","D212","D213","D402", "D413", "D415", "D416", "D417", "D105"]
[tool.ruff.per-file-ignores]
# relax code quality for tests and examples.
"tests/test_*.py" = ["D", "ANN"]
[tool.coverage.report]
precision = 2
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
[tool.coverage.run]
omit= ["src/hydra_callbacks/_version.py", "src/hydra_callbacks/monitor.py"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"--cov=hydra_callbacks",
"--cov-branch",
"--cov-report=term-missing",
"--cov-report=xml"
]