-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
85 lines (75 loc) · 2.25 KB
/
pyproject.toml
File metadata and controls
85 lines (75 loc) · 2.25 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
[project]
name = "oss-doc-scripts"
version = "0.1.0"
description = "Helper scripts for generating documentation"
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["click>=8.3.0", "requests>=2.32.5", "rich>=13.0.0", "pyyaml>=6.0", "mistune>=3.1.4"]
[tool.setuptools]
packages = [] # no Python packages to install - this is a Hugo site with helper scripts
[tool.uv]
exclude-newer = "1 week"
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = [
"-ra", # show summary of all test results
"--strict-markers", # error on undefined markers
"--cov=src", # measure coverage for utils modules
"--cov-report=term-missing", # show lines missing coverage
"--cov-report=html", # generate HTML coverage report
]
[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pyrefly>=0.29.0",
"pytest>=8.4.1",
"pytest-cov>=6.0.0",
"pytest-snapshot>=0.9.0",
"pytest-sugar>=1.0.0",
"ruff>=0.12.7",
"ty>=0.0.1a18",
]
[tool.ruff]
line-length = 88
target-version = "py311"
cache-dir = ".cache/ruff"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E402", # module level import not at top of file
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[tool.ty.environment]
root = ["src"]
[tool.pyrefly]
# disable default excludes heuristics to prevent the hidden directory pattern (**/.[!/.]*/**/*)
# from being appended - that pattern incorrectly matches when the checkout path contains .cache
# see: https://pyrefly.org/en/docs/configuration/
disable-project-excludes-heuristics = true
project-excludes = ["**/node_modules", "**/__pycache__", "**/venv/**/*"]