-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (113 loc) · 3.52 KB
/
pyproject.toml
File metadata and controls
123 lines (113 loc) · 3.52 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
[project]
name = "datamasque-python"
version = "1.0.2"
description = "Official Python client for the DataMasque data-masking API."
authors = [
{ name = "DataMasque Ltd" },
]
readme = "README.rst"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.9"
dependencies = [
"requests>=2.31.0",
"pydantic>=2.5,<3",
]
keywords = [
"datamasque",
"data-masking",
"data-privacy",
"api-client",
"test-data",
"synthetic-data",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database",
"Topic :: Security",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://datamasque.com/"
Documentation = "https://datamasque-python.readthedocs.io/"
Repository = "https://github.com/datamasque/datamasque-python"
Issues = "https://github.com/datamasque/datamasque-python/issues"
[dependency-groups]
dev = [
"bump2version>=1.0.1",
"ruff>=0.9.0",
"pytest>=7.4.4",
"Sphinx>=7.2.6",
"faker>=22.2.0",
"pytest-cov>=4.1.0",
"requests-mock>=1.11.0",
"mypy>=1.8.0",
"types-requests>=2.31.0",
]
[tool.ruff]
exclude = [
".git",
".mypy_cache",
".ruff_cache",
"__pycache__",
"node_modules",
]
line-length = 120
indent-width = 4
target-version = "py39"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "B", "D", "I"]
ignore = [
"D100", # Missing docstring in public module
"D102", # Missing docstring in public method — computed fields and simple properties are self-explanatory
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D202", # No blank lines allowed after function docstring — allow a blank line for readability
"D203", # 1 blank line required before class docstring — conflicts with D211
"D212", # Multi-line docstring summary should start at the first line — we use D213 (second line)
"D400", # First line should end with a period
"D401", # First line should be in imperative mood
"D407", # Missing dashed underline after section
"D413", # Missing blank line after last section
]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
per-file-ignores = { "datamasque/client/__init__.py" = ["F401"], "tests/**" = ["D101", "D103"] }
[tool.ruff.format]
indent-style = "space"
quote-style = "preserve"
[tool.pytest.ini_options]
addopts = "--ignore=setup.py"
[tool.mypy]
python_version = "3.9"
explicit_package_bases = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
strict_optional = true
warn_redundant_casts = true
# Relax - API boundaries return Any from response.json()
warn_return_any = false
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.hatch.build.targets.wheel]
packages = ["datamasque"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"