-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
113 lines (95 loc) · 2.94 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "monkay"
dynamic = ["version"]
description = 'The ultimate preload, settings, lazy import manager.'
readme = "README.md"
requires-python = ">=3.9"
keywords = ["monkey-patching", "settings", "lazy-imports"]
authors = [
{ name = "alex", email = "[email protected]" },
{ name = "Tiago Silva", email = "[email protected]" },
]
classifiers = [
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: BSD License",
]
dependencies = []
[project.urls]
Documentation = "https://github.com/devkral/monkay#readme"
Issues = "https://github.com/devkral/monkay/issues"
Source = "https://github.com/devkral/monkay"
[tool.hatch.version]
path = "monkay/__about__.py"
[tool.hatch.envs.default]
dependencies = [
"mypy==1.15.0",
"ruff>=0.3.0,<5.0.0",
"pre-commit>=3.3.1,<4.0.0",
"devtools>=0.12.2",
"ipython",
"ptpython",
"twine",
"pydantic_settings",
"pre-commit",
]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs",
"mkdocs-material>=9.4.4,<10.0.0",
"mdx-include>=1.4.2,<2.0.0",
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build"
serve = "mkdocs serve --dev-addr localhost:8000"
[tool.hatch.envs.default.scripts]
clean_pyc = "find . -type f -name \"*.pyc\" -delete"
clean_pyi = "find . -type f -name \"*.pyi\" -delete"
clean_pycache = "find . -type d -name \"*__pycache__*\" -delete"
build_with_check = "hatch build; twine check dist/*"
lint = "ruff check --fix --line-length 99 monkay tests {args}"
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0"]
[tool.hatch.envs.types.scripts]
check = "mypy monkay {args}"
[tool.hatch.envs.hatch-test]
extra-dependencies = ["pydantic_settings"]
[tool.coverage.run]
source_pkgs = ["monkay", "tests"]
branch = true
parallel = true
omit = ["monkay/__about__.py"]
[tool.coverage.paths]
monkay = ["monkay", "*/monkay/monkay"]
tests = ["tests", "*/monkay/tests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.ruff]
line-length = 99
fix = true
[tool.ruff.lint]
select = ["E", "W", "F", "C", "B", "I", "UP", "SIM"]
ignore = ["E501", "B008", "C901", "B026", "SIM115", "W505"]
[tool.ruff.lint.pycodestyle]
max-line-length = 99
max-doc-length = 120
[[tool.mypy.overrides]]
module = "tests.*"
ignore_missing_imports = true
check_untyped_defs = true
ignore_errors = true