-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (67 loc) · 1.69 KB
/
pyproject.toml
File metadata and controls
74 lines (67 loc) · 1.69 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
[project]
name = "compio"
version = "0.1.0"
description = "An asyncio event loop implementation powered by Rust's compio."
readme = "README.md"
authors = [
{ name = "Fantix King", email = "fantix.king@gmail.com" }
]
requires-python = ">=3.11"
dependencies = []
license = "Apache-2.0 OR MulanPSL-2.0"
license-files = ["LICENSE.Apache-2.0", "LICENSE.MulanPSL-2.0"]
[dependency-groups]
dev = [
"mypy>=1.19.0",
"ruff>=0.14.7",
"typing-extensions>=4.15.0; python_version < '3.12'",
]
[tool.maturin]
module-name = "compio._core"
python-packages = ["compio"]
python-source = "src"
manifest-path = "compio-py/Cargo.toml"
[tool.uv]
cache-keys = [
{ file = "pyproject.toml" },
{ file = "compio-py/**/*.rs" },
{ file = "compio-py-dynamic-openssl/**/*.rs" },
{ file = "**/Cargo.toml" },
{ file = "Cargo.lock" }
]
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
show_error_codes = true
[tool.ruff]
target-version = "py310"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
]
ignore = [
"I001", # Import block is un-sorted or un-formatted
"UP045", # Use X | None for type annotations
]