-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathpyproject.toml
137 lines (118 loc) Β· 2.95 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[tool.poetry]
name = "mac_cleanup"
version = "3.1.2"
description = "Python cleanup script for macOS"
license = "Apache-2.0"
authors = [ "efa2d19" ]
readme = "README.md"
homepage = "https://github.com/mac-cleanup/mac-cleanup-py"
repository = "https://github.com/mac-cleanup/mac-cleanup-py"
keywords = [
"macos",
"script",
"cleanup",
"cleaner"
]
classifiers = [
"Environment :: Console",
"Operating System :: MacOS",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
include = [ "LICENSE" ]
exclude = [ "mac_cleanup/__main__.py", "mac_cleanup/py.typed" ]
[tool.poetry.urls]
"Documentation" = "https://github.com/mac-cleanup/mac-cleanup-py#install-automatically"
"Issue Tracker" = "https://github.com/mac-cleanup/mac-cleanup-py/issues"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
rich = "^13.9.2"
attrs = "^24.2.0"
inquirer = "^3.4.0"
toml = "^0.10.2"
beartype = ">=0.19.0,<0.20.0"
xattr = "^1.1.0"
[tool.poetry.scripts]
mac-cleanup = "mac_cleanup:main"
[tool.poetry.group.test.dependencies]
tox = "^4.20.0"
pytest = "^8.3.3"
pytest-cov = "^5.0.0"
pyright = "^1.1.384"
ruff = "^0.6.8"
[tool.poetry.group.dev.dependencies]
commitizen = "^3.29.1"
pre-commit = ">=4.0.1,<5.0"
[tool.poetry.group.lint.dependencies]
black = "^24.10.0"
isort = "^5.13.2"
docformatter = "^1.7.5"
[build-system]
requires = [ "poetry-core>=1.0.0" ]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
skip-magic-trailing-comma = true
target-version = [ "py310" ]
[tool.isort]
py_version=310
profile = "black"
line_length = 120
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = false
[tool.docformatter]
wrap-summaries = 100
wrap-descriptions = 100
tab-width = 4
pre-summary-newline = true
close-quotes-on-newline = true
[tool.commitizen]
name = "cz_conventional_commits"
version_files = [ "pyproject.toml:version" ]
tag_format = "v$version"
[tool.coverage.run]
omit = [
"mac_cleanup/__main__.py",
"mac_cleanup/default_modules.py"
]
[tool.coverage.report]
show_missing = true
[tool.pyright]
pythonVersion = "3.10"
pythonPlatform = "Darwin"
typeCheckingMode = "strict"
reportPrivateUsage = false
reportIncompatibleMethodOverride = false
reportImportCycles = false
[tool.ruff]
target-version = "py310"
line-length = 120
ignore = [
"F403", # star imports
"F405", # probably undefined stuff from star imports
"E731", # lambda expressions
"C408" # dict/list as calls
]
select = [
"E", # default
"F", # default
"B", # bugbear, blind-except
"C", # comprehensions
"T", # print
"Q", # quotes
"A", # builtins
"PT", # pytest-style
"INP", # pep420
"SIM", # simplify
]
[tool.ruff.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
[tool.pytest.ini_options]
minversion = "8.3.3"
addopts = "--cov=mac_cleanup"
testpaths = [ "tests" ]