-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (71 loc) · 1.67 KB
/
pyproject.toml
File metadata and controls
83 lines (71 loc) · 1.67 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
[project]
name = "dotfiles-config"
version = "0.1.0"
description = "Workspace root for dotfiles configuration packages"
requires-python = ">=3.12"
dependencies = [
"dotfiles-icon-renderer-config",
]
[tool.uv.workspace]
members = [
"packages/dotfiles-icon-renderer",
]
[tool.uv.sources]
dotfiles-icon-renderer-config = { workspace = true }
[dependency-groups]
dev = [
"pytest>=9.0.0",
"pytest-cov>=7.0.0",
"pytest-xdist>=3.8.0",
"mypy>=1.19.0",
"black>=26.0.0",
"ruff>=0.14.0",
"isort>=7.0.0",
"bandit>=1.8.0",
"pre-commit>=3.8.0",
"types-PyYAML>=6.0.0",
]
[tool.black]
line-length = 88
target-version = ["py312"]
[tool.isort]
profile = "black"
line_length = 88
known_first_party = ["dotfiles_config_icon_renderer"]
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
]
[tool.ruff.lint.isort]
known-first-party = ["dotfiles_config_icon_renderer"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
disable_error_code = ["import-untyped"]
[tool.pytest.ini_options]
testpaths = ["packages/*/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-n auto --color=yes --cov-report=term-missing"
[tool.coverage.run]
source = ["src"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]