-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
75 lines (63 loc) · 1.84 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
[tool.poetry]
name = "xdg-base-dirs"
version = "6.0.2"
description = "Variables defined by the XDG Base Directory Specification"
authors = ["Scott Stevenson <[email protected]>"]
license = "ISC"
readme = "README.md"
homepage = "https://github.com/srstevenson/xdg-base-dirs"
repository = "https://github.com/srstevenson/xdg-base-dirs"
keywords = ["xdg", "base", "directory", "specification"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
]
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
[tool.poetry.group.dev.dependencies]
mypy = ">=1.0.1"
poethepoet = ">=0.22.0"
pytest = ">=7.2.1"
pytest-cov = ">=4.0.0"
ruff = ">=0.1.6"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_untyped_defs = true
enable_error_code = ["ignore-without-code"]
no_implicit_optional = true
show_error_codes = true
strict = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.poe.tasks]
_ruff_check_fix = "ruff check --fix ."
_ruff_fmt = "ruff format ."
fmt = ["_ruff_check_fix", "_ruff_fmt"]
_ruff_fmt_check = "ruff format --check ."
_ruff_check = "ruff check ."
_mypy = "mypy ."
lint = ["_ruff_fmt_check", "_ruff_check", "_mypy"]
test = "pytest tests"
check = ["lint", "test"]
[tool.pytest.ini_options]
addopts = "--cov=xdg_base_dirs --cov-report=term-missing"
[tool.ruff]
target-version = "py310"
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["ALL"]
ignore = ["COM812", "D203", "D213", "INP001", "ISC001", "S101"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false