-
Notifications
You must be signed in to change notification settings - Fork 299
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (93 loc) · 2.7 KB
/
pyproject.toml
File metadata and controls
102 lines (93 loc) · 2.7 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
[project]
name = "orjson"
version = "3.11.7"
repository = "https://github.com/ijl/orjson"
description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Programming Language :: Rust",
"Typing :: Typed",
]
readme = "README.md"
license = "MPL-2.0 AND (Apache-2.0 OR MIT)"
[project.urls]
source = "https://github.com/ijl/orjson"
documentation = "https://github.com/ijl/orjson"
changelog = "https://github.com/ijl/orjson/blob/master/CHANGELOG.md"
[build-system]
build-backend = "maturin"
requires = ["maturin>=1,<2"]
[tool.maturin]
python-source = "pysrc"
include = [
{ format = "sdist", path = ".cargo/*" },
{ format = "sdist", path = "build.rs" },
{ format = "sdist", path = "Cargo.lock" },
{ format = "sdist", path = "include/cargo/**/*" },
{ format = "sdist", path = "include/yyjson/**/*" },
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"A",
"ASYNC",
"B",
"COM",
"DTZ",
"E",
"EXE",
"F",
"FLY",
"I",
"ISC",
"PIE",
"PLC",
"PLE",
"PLR",
"PLW",
"RUF",
"TCH",
"TID",
"UP",
"W",
]
ignore = [
"B005", # Using `.strip()` with multi-character strings is misleading
"DTZ001", # `datetime.datetime()` called without a `tzinfo` argument
"DTZ005", # `datetime.datetime.now()` called without a `tz` argument
"E402", # Module level import not at top of file
"E501", # line too long
"F601", # Dictionary key literal ... repeated
"PIE810", # Call `startswith` once with a `tuple`
"PLR2004", # Magic value used in comparison
"UP012", # Unnecessary call to encode as UTF-8
]
[tool.pytest]
minversion = "9.0"
strict = true
[tool.ruff.lint.isort]
known-first-party = ["orjson"]
[tool.mypy]
python_version = "3.10"
[[tool.mypy.overrides]]
module = ["dateutil", "pytz"]
ignore_missing_imports = true