generated from educationwarehouse/edwh-demo-tasks-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
152 lines (131 loc) · 3.73 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
146
147
148
149
150
151
152
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "edwh-uptime-plugin"
dynamic = ["version"]
description = 'UptimeRobot plugin for `edwh`'
readme = "README.md"
requires-python = ">=3.10"
license-expression = "MIT"
keywords = ["edwh"]
authors = [
{ name = "Remco Boerma", email = "remco.b@educationwarehouse.nl" },
{ name = "Robin van der Noord", email = "robin.vdn@educationwarehouse.nl" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
'edwh>=0.38.0',
'yayarl',
'termcolor',
'tomli-w',
'typing-extensions',
]
[project.optional-dependencies]
dev = [
"hatch",
# "python-semantic-release",
"black",
"isort",
"pytest",
"pytest-cov",
]
[project.urls]
Documentation = "https://github.com/educationwarehouse/edwh-uptime-plugin#readme"
Issues = "https://github.com/educationwarehouse/edwh-uptime-plugin/issues"
Source = "https://github.com/educationwarehouse/edwh-uptime-plugin"
# https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata
[project.entry-points."edwh.tasks"]
uptime = "edwh_uptime_plugin.tasks"
[tool.hatch.version]
path = "src/edwh_uptime_plugin/__about__.py"
[tool.semantic_release]
branch = "master"
version_variable = "src/edwh_uptime_plugin/__about__.py:__version__"
change_log = "CHANGELOG.md"
upload_to_repository = false
upload_to_release = false
build_command = "hatch build"
parser_angular_minor_types = "feat,minor"
parser_angular_patch_types = "fix,perf,refactor,build,chore,patch"
[tool.su6]
# every checker:
directory = "src"
# 'all' and 'fix':
include = []
exclude = []
# 'all':
stop-after-first-failure = false
# pytest:
coverage = 100
badge = false
# --format json indent
json-indent = 4
[tool.black]
target-version = ["py310"]
line-length = 120
skip-string-normalization = false
[tool.isort]
profile = "black"
extend_skip_glob = ["*.bak/*"]
[tool.ruff]
target-version = "py310"
line-length = 120
extend-exclude = ["*.bak/", "venv*/"]
[tool.ruff.lint]
select = [
"F", # pyflake error
"E", # pycodestyle error
"W", # pycodestyle warning
"Q", # quotes
"A", # builtins
# "C4", # comprehensions - NO: doesn't allow dict()
# "RET", # return - NO: annoying
"SIM", # simplify
"ARG", # unused arguments
# "COM", # comma's - NO: annoying
# "PTH", # use pathlib - NO: annoying
"RUF", # ruff rules
]
unfixable = [
# Don't touch unused imports
"F401",
]
ignore = [
"RUF013" # implicit Optional
]
[tool.ruff.lint.isort]
known-first-party = ["edwh_uptime_plugin"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]
[tool.coverage.run]
source_pkgs = ["edwh_uptime_plugin", "tests"]
branch = true
parallel = true
omit = [
"src/edwh_uptime_plugin/__about__.py",
]
[tool.coverage.paths]
edwh_uptime_plugin = ["src/edwh_uptime_plugin", "*/edwh-uptime-plugin/src/edwh_uptime_plugin"]
tests = ["tests", "*/edwh-uptime-plugin/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.mypy]
python_version = "3.10"
# `some: int = None` looks nicer than `some: int | None = None` and pycharm still understands it
no_implicit_optional = false # I guess 'strict_optional' should be true, but disable this one because it's double!