-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (99 loc) · 2.78 KB
/
pyproject.toml
File metadata and controls
115 lines (99 loc) · 2.78 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
[build-system]
requires = ["maturin>=1.8,<2.0"]
build-backend = "maturin"
[project]
name = "djc_core"
version = "1.3.0"
requires-python = ">=3.10, <4.0"
description = "Core library for django-components written in Rust."
keywords = ["django", "components", "html"]
readme = "README.md"
authors = [{ name = "Juro Oravec", email = "juraj.oravec.josefson@gmail.com" }]
classifiers = [
"Programming Language :: Python",
"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 :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = []
license = { text = "MIT" }
# See https://docs.pypi.org/project_metadata/#icons
[project.urls]
Homepage = "https://github.com/django-components/djc-core/"
Changelog = "https://github.com/django-components/djc-core/blob/main/CHANGELOG.md"
Issues = "https://github.com/django-components/djc-core/issues"
Donate = "https://github.com/sponsors/EmilStenstrom"
###########################################
# ENVIRONMENT DEPENDENCIES
###########################################
[dependency-groups]
# Dev dependencies - install with `uv sync --group dev`
dev = ["maturin", "pytest"]
# CI dependencies - install with `uv sync --group ci`
ci = ["maturin", "pytest"]
###########################################
# BUILD TOOLS
###########################################
[tool.maturin]
# This is the crate that will be exposed to Python
manifest-path = "crates/djc-core/Cargo.toml"
features = ["pyo3/extension-module"]
include = ["djc_core/__init__.py", "djc_core/__init__.pyi", "djc_core/py.typed"]
###########################################
# TESTING TOOLS
###########################################
[tool.pytest.ini_options]
testpaths = ["tests"]
###########################################
# FORMATTING & TYPE-CHECKING TOOLS
###########################################
[tool.black]
line-length = 119
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| activate
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 119
multi_line_output = 3
include_trailing_comma = "True"
known_first_party = "djc_core"
[tool.flake8]
ignore = ['E302', 'W503']
max-line-length = 119
exclude = [
'migrations',
'__pycache__',
'manage.py',
'settings.py',
'env',
'.env',
'.venv',
'.tox',
'build',
]
[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
exclude = ['build']
[[tool.mypy.overrides]]
module = "djc_core.*"
disallow_untyped_defs = true