-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
pyproject.toml
55 lines (49 loc) · 1.53 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["api"]
[project]
name = "github-readme-youtube-cards"
version = "1.7.0"
description = "Workflow for displaying recent YouTube videos as SVG cards in your readme"
authors = [{name = "Jonah Lawrence", email = "jonah@freshidea.com"}]
readme = "README.md"
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.isort]
profile = "black"
py_version = 310
line_length = 100
combine_as_imports = true
filter_files = true
[tool.taskipy.tasks]
black = { cmd = "task lint black", help = "Run black" }
isort = { cmd = "task lint isort", help = "Run isort" }
lint = { cmd = "pre-commit run --all-files", help = "Check all files for linting errors" }
precommit = { cmd = "pre-commit install --install-hooks", help = "Install the precommit hook" }
pyright = { cmd = "pyright", help = "Run pyright" }
[tool.pyright]
typeCheckingMode = "basic"
include = [
"api",
"tests",
"*.py",
]
pythonVersion = "3.11"
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md
reportPropertyTypeMismatch = true
reportDuplicateImport = true
reportUntypedFunctionDecorator = true
reportUntypedClassDecorator = true
reportUntypedBaseClass = true
reportUntypedNamedTuple = true
reportUnknownLambdaType = true
reportInvalidTypeVarUse = true
reportUnnecessaryCast = true
reportSelfClsParameterName = true
reportUnsupportedDunderAll = true
reportUnusedVariable = true
reportUnnecessaryComparison = true
reportUnnecessaryTypeIgnoreComment = true