-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (150 loc) · 3.22 KB
/
pyproject.toml
File metadata and controls
163 lines (150 loc) · 3.22 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
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
[project]
name = "hypothesis-jsonschema"
version = "0.23.1"
keywords = [
"python",
"testing",
"fuzzing",
"property-based-testing",
"json-schema"
]
description = "Generate test data from JSON schemata with Hypothesis"
requires-python = ">=3.8"
readme = "README.md"
authors = [
{ name = "Zac Hatfield-Dodds", email = "zac@zhd.dev"}
]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Hypothesis",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Education :: Testing",
"Topic :: Software Development :: Testing",
"Typing :: Typed",]
license = "MPL-2.0"
zip-safe = false
dependencies = [
"hypothesis>=6.84.3",
"jsonschema>=4.18.0",
"typer>=0.15.4",
]
[project.urls]
repository = "https://github.com/Zac-HD/hypothesis-jsonschema"
funding = "https://github.com/sponsors/Zac-HD"
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"pytest-xdist",
"flake8",
"ruff",
"mypy",
"shed"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project.scripts]
hypothesisjson = "hypothesis_jsonschema._cli:app"
[tool.ruff.lint]
select = [
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM", # flake8-commas
"E", # pycodestyle
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"FLY", # flynt
"G", # flake8-logging-format
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"PIE", # flake8-pie
"PLE", # Pylint errors
"PT", # flake8-pytest-style
"RET504", # flake8-return
"RSE", # flake8-raise
"SIM", # flake8-simplify
"T10", # flake8-debugger
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
# "PTH", # flake8-use-pathlib
"RUF", # Ruff-specific rules
]
ignore = [
"B008",
"B018",
"B017",
"C408",
"COM812",
"DJ008",
"E501",
"E721",
"E731",
"E741",
"FBT003",
"PT001",
"PT003",
"PT006",
"PT007",
"PT009",
"PT011",
"PT012",
"PT013",
"PT017",
"PT019",
"PT023",
"PT027",
"UP031",
]
[tool.ruff]
target-version = "py38"
# Settings for other tools
[pytest]
xfail_strict = true
addopts = [
"-Werror",
"--tb=short",
"--cov=hypothesis_jsonschema",
"--cov-branch",
"--cov-report=term-missing:skip-covered",
"--cov-fail-under=100",
]
[flake8]
ignore = [
"D1",
"E203",
"E501",
"W503",
"S101",
"S310"
]
exclude = [
".*/",
"__pycache__"
]
[mypy]
python_version = 3.8
platform = "linux"
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_untyped_decorators = true
follow_imports = "silent"
ignore_missing_imports = true
implicit_reexport = false
strict_equality = true
warn_no_return = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
warn_unused_configs = true
warn_redundant_casts = true