-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
134 lines (116 loc) · 2.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
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
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core",
]
[tool.autoflake]
in-place = true
recursive = true
remove-all-unused-imports = true
[tool.black]
target-version = [
"py311",
]
[tool.coverage.run]
omit = [
"*/__main__.py",
]
[tool.isort]
profile = "black"
[tool.poe.tasks.format]
help = "Run all formating tools on the base"
sequence = [
"format_autoflake",
"format_black",
"format_blacken_docs",
"format_isort",
"format_mdformat",
"format_pyprojectsort",
]
[tool.poe.tasks.format_autoflake]
help = "Run AutoFlake on the base"
sequence = [
{ cmd = "autoflake ." },
]
[tool.poe.tasks.format_black]
help = "Run Black on the base"
sequence = [
{ cmd = "black ." },
]
[tool.poe.tasks.format_blacken_docs]
help = "Run Blacken-Docs on the base"
ignore_fail = "return_zero"
sequence = [
{ shell = "git ls-files -z -- '*.md' | xargs -0 blacken-docs" },
{ shell = "git ls-files -z -- '*.py' | xargs -0 blacken-docs" },
]
[tool.poe.tasks.format_isort]
help = "Run iSort on the base"
sequence = [
{ cmd = "isort ." },
]
[tool.poe.tasks.format_mdformat]
help = "Run Mdformat on the read-me file"
ignore_fail = "return_zero"
sequence = [
{ cmd = "mdformat --number --wrap=keep README.md" },
]
[tool.poe.tasks.format_pyprojectsort]
help = "Run `pyprojectsort` on the `pyproject.toml` file"
ignore_fail = "return_zero"
sequence = [
{ cmd = "pyprojectsort pyproject.toml" },
]
[tool.poe.tasks.test]
cmd = "pytest --cov=jour --cov-report=term --cov-report=xml:cov.xml"
help = "Run tests with coverage report"
[tool.poe.tasks.test_quick]
cmd = "pytest -m \"not slow\""
help = "Run tests, excluding slow ones and without coverage"
[tool.poetry]
authors = [
"Borja González Seoane <[email protected]>",
]
classifiers = [
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Information Technology",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Logging",
"Topic :: Utilities",
]
description = "An utility for a high-level machine maintenance journal"
keywords = [
"configuration",
"journal",
"journaling",
"machine-administration",
"machine-maintenance",
"markdown",
]
license = "LICENSE"
name = "jour"
readme = "README.md"
repository = "https://github.com/bglezseoane/jour"
version = "2.0.2"
[tool.poetry.dependencies]
ilock = "^1.0.3"
mdformat = "^0.7.17"
python = "^3.11"
[tool.poetry.group.dev.dependencies]
autoflake = "^2.2.1"
black = "^23.10.1"
blacken-docs = "^1.16.0"
isort = "^5.12.0"
poethepoet = "^0.24.1"
pyprojectsort = "^0.3.0"
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
[tool.poetry.scripts]
jour = "jour.__main__:main"
[tool.pytest.ini_options]
markers = [
"serial",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]