-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
83 lines (74 loc) · 1.98 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
[project]
authors = [
{name = "Raphael Reitzig", email = "[email protected]"},
]
maintainers = [
{name = "Raphael Reitzig", email = "[email protected]"},
]
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."
readme = "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",
]
requires-python = ">=3.9,<3.14"
dependencies = []
[project.urls]
repository = "https://github.com/reitzig/espanso-nice-dev-refs"
documentation = "https://github.com/reitzig/espanso-nice-dev-refs/blob/main/README.md"
[dependency-groups]
dev = [
"assertpy==1.1",
"coverage[toml]==7.6.10",
"poethepoet==0.32.1",
"pytest==8.3.4",
"ruff==0.9.2",
]
[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
]