-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
140 lines (124 loc) · 3.56 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
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "hypothesis-torch"
description = "Hypothesis strategies for various Pytorch structures, including tensors and modules."
dynamic = ["version"]
dependencies = [
"hypothesis>=6.0.0",
"torch>=2.1.0",
]
requires-python = ">=3.9"
authors=[{name="Andrew P. Sansom", email="[email protected]"}]
readme="README.md"
license={file="LICENSE"}
keywords = ["hypothesis", "torch", "pytorch", "testing", "property-based testing", "deep learning", "tensor", "neural network", "artificial intelligence", "machine learning"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Framework :: Hypothesis",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"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 :: Software Development :: Testing",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.entry-points."hypothesis"]
_ = "hypothesis_torch.register_random_torch_state:_register_random_torch_state"
[project.optional-dependencies]
huggingface = [
"transformers>=4.42.3,<=4.47.1",
]
dev = [
"mypy==1.14.1",
"ruff==0.8.6",
"pyright==1.1.391",
"pytest==8.3.4",
"pytest-cov==6.0.0"
]
docs = [
"mkdocs==1.6.1",
"mkdocstrings[python]==0.27.0",
"mkdocs-autolinks-plugin==0.7.1",
"mkdocs-material==9.5.49",
"mkdocs-snippets==1.3.0",
"mkdocs-exclude==1.0.2",
]
numpy=[
"numpy==2.0.1 ; python_version=='3.9'",
"numpy==2.1.2 ; python_version>='3.10'",
]
old-numpy=["numpy==1.26.4",]
torch = [
"torch",
"numpy"
]
"torch2.1.2"=[
"torch==2.1.2+cpu",
"hypothesis_torch[old-numpy]"
]
"torch2.2.2"=[
"torch==2.2.2+cpu",
"hypothesis_torch[old-numpy]"
]
"torch2.3.1"=[
"torch==2.3.1+cpu",
"hypothesis_torch[numpy]"
]
"torch2.4.0"=[
"torch==2.4.0+cpu",
"hypothesis_torch[numpy]"
]
"torch2.5.1"=[
"torch==2.5.1",
"hypothesis_torch[numpy]"
]
[project.urls]
Homepage = "https://github.com/qthequartermasterman/hypothesis-torch"
Documentation = "https://hypothesis-torch.readthedocs.io/en/stable/"
Repository = "https://github.com/qthequartermasterman/hypothesis-torch.git"
Issues = "https://github.com/qthequartermasterman/hypothesis-torch/issues"
[tool.ruff]
line-length = 120
preview = true
[tool.semantic_release]
major_on_zero = false
version_variables = [
"hypothesis_torch/__init__.py:__version__",
]
build_command = "python -m pip install build && python -m build"
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf", "build"]
[tool.setuptools.dynamic]
version = {attr = "hypothesis_torch.__version__"}
[tool.ruff.lint]
select = ["ANN", "D", "E", "F", "FURB", "I", "N", "PERF", "PTH", "RUF", "YTT", "UP", "W"]
ignore = ["D205", "F401", "PT009", "S101"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[[tool.mypy.overrides]]
module = ["transformers", "transformers.activations", "transformers.models", "annotated_types"]
ignore_missing_imports = true