-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
145 lines (122 loc) · 3.62 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
138
139
140
141
142
143
144
145
[tool.poetry]
name = "xfce-repocapp"
version = "0.8.7"
description = "A collection of scripts to maintain local Xfce repositories"
authors = [
"Kevin Bowen <[email protected]>"
]
maintainers = [
]
license = "GPL-2.0-only"
package-mode = false
[tool.poetry.dependencies]
python = ">=3.10.0, <3.14.0"
[tool.poetry.group.dev.dependencies]
pre-commit = ">=4.0, <5.0"
ruff = ">=0.8, <1.0"
nox = "2024.10.09"
pytest = ">=8.0, <8.4"
pytest-cov = ">=6.0.0, <7.0"
pytest-sugar = "1.0.0"
coverage = { version = ">=7.0.0, <8.0.0", extras = ["toml"] }
pylint = "^3.0"
sphinx = ">= 8.0, <9.0"
[tool.coverage.run]
branch = true
dynamic_context = "test_function"
source = ["src"]
omit = [
"*/__init__.py",
"*tests/*",
"*test_*.py",
"*tests.py",
]
[tool.coverage.report]
show_missing = true
precision = 2
[tool.coverage.html]
show_contexts = true
title = "xfce-repocapp coverage report"
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
python_files = ["tests.py", "test_*.py", "*_tests.py"]
pythonpath = "src"
filterwarnings = [ ]
[tool.ruff]
preview = true
respect-gitignore = true
unsafe-fixes = false
# Same as Black.
line-length = 88
# Assume Python 3.13.x
target-version = "py313"
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".mypy_cache",
".nox",
".ruff_cache",
"__pypackages__",
"_build",
"build",
"dist",
"htmlcov",
]
[tool.ruff.lint]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [
"B", # flake8-bugbear
"C90", # mccabe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
"W", # pycodestyle warnings
"RUF", # ruff checks
]
ignore = [
"E501", # line too long ({width} > {limit} characters)
# "E203", # slice notation whitespace (not currently supported)
"E402", # module level import not at top of file
"E722", # do not use bare except
# "W503", # (not currently supported)
"ERA", # do not autoremove commented out code
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
# "src/test.py" = ["S101", "S106"]
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, repspect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
# Enable auto-formatting of code examples in docstrings. Markdown,
# reStructuredText code/literal blocks and doctests are all supported.
#
# This is currently disabled by default, but it is planned for this
# to be opt-out in the future.
docstring-code-format = false
# Set the line length limit used when formatting code snippets in
# docstrings.
#
# This only has an effect when the `docstring-code-format` setting is
# enabled.
docstring-code-line-length = "dynamic"
[build-system]
# requires = ["setuptools", "wheel"]
# build-backend = "setuptools.build_meta"
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"