-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (86 loc) · 2.39 KB
/
pyproject.toml
File metadata and controls
99 lines (86 loc) · 2.39 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "prefer"
version = "0.7.0"
description = "A user-preference focused configuration library for Python."
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT"}
authors = [
{name = "LimpidTech", email = "info@limpidtech.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"PyYAML>=5.1",
"xmljson>=0.2.0",
"json5>=0.9.0",
"tomli>=2.0.0;python_version<'3.11'",
"tomli-w>=1.0.0",
"watchdog>=4.0.0",
]
[project.optional-dependencies]
dev = [
"build>=1.0.0",
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.0",
"pytest-watch>=4.2",
"pytest-blockage>=0.2.0",
"mypy>=1.0",
"ruff>=0.1.0",
"pyupgrade>=3.0",
"mock>=4.0",
"types-PyYAML>=6.0",
]
[project.urls]
Homepage = "https://github.com/LimpidTech/prefer.py"
Repository = "https://github.com/LimpidTech/prefer.py"
Issues = "https://github.com/LimpidTech/prefer.py/issues"
[tool.setuptools.packages.find]
where = ["."]
include = ["prefer*"]
[tool.pytest.ini_options]
addopts = "--cov-report=term-missing --cov-report=html --cov=prefer --blockage -rssX"
testpaths = ["tests"]
python_files = "*_spec.py"
norecursedirs = [".git", ".venv", "venv", "__pycache__"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
no_implicit_optional = true
exclude = [
".*_spec\\.py$",
]
[[tool.mypy.overrides]]
module = "xmljson"
ignore_missing_imports = true
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP"]
ignore = ["UP006", "UP007", "UP037", "UP045"]
[tool.ruff.lint.per-file-ignores]
"*_spec.py" = ["N802", "E501"] # Allow test function names with uppercase and long lines
"prefer/loading.py" = ["N806"] # Allow uppercase variable names for plugin classes
[tool.coverage.run]
source = ["prefer"]
omit = ["*/tests/*", "*/__pycache__/*", "*_spec.py"]
[tool.coverage.report]
fail_under = 100
show_missing = true
[tool.coverage.html]
directory = "htmlcov"