-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (64 loc) · 1.95 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (64 loc) · 1.95 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
[project]
name = "localizationkit"
dynamic = ["version"]
description = "String localization tests"
license = "MIT"
authors = [{ name = "Dale Myers", email = "dalemy@microsoft.com" }]
readme = "README.md"
keywords = ["localization", "strings", "tests"]
requires-python = ">=3.11,<4.0"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development",
"Topic :: Software Development :: Testing",
"Topic :: Utilities",
]
dependencies = []
[project.urls]
homepage = "https://github.com/Microsoft/localizationkit"
repository = "https://github.com/Microsoft/localizationkit"
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pre-commit>=4.0.0",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"ruff>=0.15.20",
]
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM", "PL"]
ignore = [
"N818", # exception-name-suffix: LocalizationKitException is public API
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
]
[tool.ruff.lint.per-file-ignores]
# Submodules are imported for test discovery, not direct use.
"localizationkit/tests/__init__.py" = ["F401"]
"tests/*" = ["B017"] # pytest.raises(Exception) is acceptable in tests
[tool.mypy]
python_version = "3.11"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--doctest-modules"
[tool.coverage.run]
source = ["localizationkit"]
[tool.coverage.report]
show_missing = true
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"