-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (121 loc) · 3.66 KB
/
Copy pathpyproject.toml
File metadata and controls
138 lines (121 loc) · 3.66 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
138
[project]
name = "skelmis-docx"
version = "2.6.0"
description = "Create, read, and update Microsoft Word .docx files."
authors = [{ name = "Skelmis", email = "skelmis.craft@gmail.com" }]
requires-python = ">=3.10"
readme = "README.md"
license = "MIT"
keywords = ["Docx"]
dependencies = [
"lxml>=5.0.0",
"typing-extensions>=4.12.2,<5",
"pywin32>=307 ; sys_platform == 'windows'",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
# Specify the Python versions you support here.
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.urls]
Homepage = "https://github.com/skelmis/python-docx"
Documentation = "https://skelmis-docx.readthedocs.io/en/latest/"
"Issue tracker" = "https://github.com/Skelmis/python-docx/issues"
Changelog = "https://github.com/Skelmis/python-docx/blob/master/HISTORY.rst"
[dependency-groups]
dev = [
"build>=1.2.1,<2",
"ruff>=0.11.13",
"tox>=4.18.0,<5",
"twine>=6.1.0",
"types-lxml>=2024.8.7",
"behave>=1.2.6,<2",
"pyparsing>=3.1.2,<4",
"pytest>=8.3.2,<9",
"pytest-coverage>=0.0,<0.1",
"pytest-xdist>=3.6.1,<4",
"black>=25.1.0",
"setuptools<80",
]
docs = ["sphinx>=8.0.2,<9"]
[tool.uv]
default-groups = [
"dev",
"docs",
]
[tool.hatch.build.targets.sdist]
include = ["src/skelmis/docx"]
[tool.hatch.build.targets.wheel]
include = ["src/skelmis/docx"]
[tool.hatch.build.targets.wheel.sources]
"src/skelmis/docx" = "skelmis/docx"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.black]
line-length = 100
target-version = ["py310", "py311"]
[tool.pyright]
include = ["src/docx", "tests"]
pythonPlatform = "All"
pythonVersion = "3.10"
reportImportCycles = true
reportUnnecessaryCast = true
reportUnnecessaryTypeIgnoreComment = true
stubPath = "./typings"
typeCheckingMode = "strict"
verboseOutput = true
[tool.pytest.ini_options]
filterwarnings = [
# -- exit on any warning not explicitly ignored here --
"error",
# -- pytest-xdist plugin may warn about `looponfailroots` deprecation --
"ignore::DeprecationWarning:xdist",
# -- pytest complains when pytest-xdist is not installed --
"ignore:Unknown config option. looponfailroots:pytest.PytestConfigWarning",
]
looponfailroots = ["src", "tests"]
norecursedirs = [
"doc",
"docx",
"*.egg-info",
"features",
".git",
"ref",
"_scratch",
".tox",
]
python_files = ["test_*.py"]
python_classes = ["Test", "Describe"]
python_functions = ["it_", "its_", "they_", "and_", "but_"]
[tool.ruff]
exclude = []
line-length = 100
target-version = "py310"
[tool.ruff.lint]
ignore = [
"COM812", # -- over-aggressively insists on trailing commas where not desired --
"PT001", # -- wants @pytest.fixture() instead of @pytest.fixture --
]
select = [
"C4", # -- flake8-comprehensions --
"COM", # -- flake8-commas --
"E", # -- pycodestyle errors --
"F", # -- pyflakes --
"I", # -- isort (imports) --
"PLR0402", # -- Name compared with itself like `foo == foo` --
"PT", # -- flake8-pytest-style --
"SIM", # -- flake8-simplify --
"UP015", # -- redundant `open()` mode parameter (like "r" is default) --
"UP018", # -- Unnecessary {literal_type} call like `str("abc")`. (rewrite as a literal) --
"UP032", # -- Use f-string instead of `.format()` call --
"UP034", # -- Avoid extraneous parentheses --
]
[tool.ruff.lint.isort]
known-first-party = ["docx"]
known-local-folder = ["helpers"]