forked from mongomock/mongomock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (124 loc) · 3.33 KB
/
pyproject.toml
File metadata and controls
137 lines (124 loc) · 3.33 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "mongomock"
dynamic = ["version"]
description = "Fake pymongo stub for testing simple MongoDB-dependent code"
readme = "README.rst"
license = { file = "LICENSE" }
authors = [
{ name = "Rotem Yaari", email = "vmalloc@gmail.com" },
{ name = "Martin Domke", email = "mail@martindomke.net" },
{ name = "Pascal Corpet", email = "pascal@corpet.net" },
]
requires-python = ">=3.9"
classifiers = [
"License :: OSI Approved :: ISC License (ISCL)",
"Topic :: Database",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"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",
]
dependencies = [
"packaging",
"pytz",
"sentinels",
]
[project.optional-dependencies]
pyexecjs = ["pyexecjs"]
pymongo = ["pymongo"]
[project.urls]
Homepage = "https://github.com/mongomock/mongomock"
Changelog = "https://github.com/mongomock/mongomock/blob/develop/CHANGELOG.md"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["mongomock"]
[tool.ruff]
target-version = "py39"
line-length = 100
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
extend-select = [
"A",
"B",
"C",
"C4",
"E",
"F",
"I",
"N",
"Q",
"RUF",
"S",
"SIM",
"T10",
"UP",
"W",
"YTT",
]
extend-fixable = [
"RUF100",
"I001",
"SIM300",
"UP008",
"UP003",
"C403",
"UP031",
"UP032",
]
extend-ignore = [
"A001", # Allow shadowing bultins
"A002", # Allow shadowing bultins
"A003", # Allow shadowing bultins on classes
"FBT002", # Allow boolean default positional parameter
"N818", # Allow exceptions without Error suffix
"UP006", # Allow typing.Tuple
"UP007", # Allow typing.Union
"PYI024", # Allow use of collections.namedtuple
"S101", # Allow usage of asserts
# TODO: Remove in future pull-requests
"ARG001", # Allow unused function argument
"ARG002", # Allow unused method argument
"DTZ001", # Allow datetime.datetime() without tzinfo
"DTZ003", # Allow datetime.utcnow()
"DTZ004", # Allow datetime.utcfromtimestamp()
"DTZ005", # Allow datetime.now() without timezone
"EM101", # Allow raw string in exception
"EM102", # Allow f-string in exception
"TRY003", # Allow specifying messages outside exception class
"PLR2004", # Allow magic values in comparison
]
exclude = [
"mongomock/__init__.pyi",
]
[tool.ruff.lint.per-file-ignores]
"tests/test__*.py" = [
"N802",
"PT009",
"PT027",
"SLF001",
"DTZ001",
]
[tool.ruff.lint.mccabe]
max-complexity = 40
[tool.ruff.lint.isort]
order-by-type = false
force-single-line = true
lines-after-imports = 2
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.doc8]
max-line-length = 100