-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
84 lines (74 loc) · 2.04 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
[build-system]
requires = ["poetry_core>=1.7.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "espanso-nice-dev-refs"
version = "0.0.0" # not used, cf. nice-dev-refs/_manifest.yml
description = "A package for espanso; takes URLs from the clipboard and inserts a formatted link based on it."
authors = [
"Raphael Reitzig <[email protected]>",
]
maintainers = [
"Raphael Reitzig <[email protected]>",
]
readme = "README.md"
repository = "https://github.com/reitzig/espanso-nice-dev-refs"
documentation = "https://github.com/reitzig/espanso-nice-dev-refs/blob/main/README.md"
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Utilities",
"Environment :: Plugins",
]
[tool.poetry.dependencies]
python = ">=3.9,<3.14"
[tool.poetry.group.dev.dependencies]
assertpy = "1.1"
coverage = { version = "7.6.7", extras = ["toml"] }
poethepoet = "0.30.0"
pytest = "8.3.3"
ruff = "0.7.4"
[tool.poe.tasks.test]
shell = """
coverage run -m pytest
coverage report
"""
[tool.poe.tasks.lint]
shell = """
ruff format --check .
ruff check --respect-gitignore . && echo "ruff: clean"
"""
[tool.pytest.ini_options]
pythonpath = [
"scripts",
"test",
]
log_cli = true
log_level = "DEBUG"
[tool.coverage.run]
source = [
"scripts"
]
[tool.coverage.report]
fail_under = 99
skip_empty = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover"
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
# cf. https://beta.ruff.rs/docs/rules/
select = [
"A", "ANN", "ARG", "B", "C4", "COM", "E", "F", "FA", "FLY",
"INP", "INT", "N", "PGH", "PT", "PTH", "PYI", "RET", "RUF",
"SIM", "SLF", "TCH", "UP", "W"]
ignore = [
"COM812", # incompatible with Black code style
"RET505", # I prefer symmetric structure
]