-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (67 loc) · 1.99 KB
/
pyproject.toml
File metadata and controls
79 lines (67 loc) · 1.99 KB
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
[project]
name = "mactop"
version = "0.1.0"
description = "Beautiful hardware monitoring for macOS"
readme = "README.md"
requires-python = ">=3.11"
dependencies = ["rich>=14.2.0"]
[dependency-groups]
dev = [
"poethepoet>=0.37.0",
]
lint = [
"basedpyright>=1.33.0",
"ruff>=0.14.5",
]
[tool.poe.tasks]
basedpyright = "basedpyright --warnings ."
ruff = "ruff check --fix ."
ruff-format = "ruff format ."
[tool.basedpyright]
pythonPlatform = "All"
pythonVersion = "3.11"
typeCheckingMode = "all"
# Diagnostic behavior settings
strictListInference = false
strictDictionaryInference = false
strictSetInference = false
analyzeUnannotatedFunctions = true
strictParameterNoneValue = true
enableTypeIgnoreComments = true
deprecateTypingAliases = true
enableExperimentalFeatures = false
disableBytesTypePromotions = true
# Diagnostic rules
reportAny = false
reportExplicitAny = false
reportImplicitStringConcatenation = false
reportUnreachable = "hint"
reportUnusedParameter = "hint"
reportUnannotatedClassAttribute = false
reportMissingParameterType = false
[tool.ruff]
target-version = "py311"
line-length = 119
[tool.ruff.format]
line-ending = "lf"
quote-style = "double"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# flake8-annotations
"ANN002", # Missing type annotation for *args
"ANN003", # Missing type annotation for **kwargs
"ANN204", # Missing return type annotation for special method
"ANN401", # `typing.Any` disallowed
# pydocstyle
"D", # Disable all docstring checks
# flake8-type-checking
"TC001", # Move application imports used only for annotations into a type-checking block
"TC002", # Move 3rd-party imports used only for annotations into a type-checking block
"TC003", # Move standard library imports used only for annotations into a type-checking block
"SIM108", # Use ternary operator instead of if-else-block
"E731", # Don't assign a lambda expression, use a def
"S105", # Hard-coded passwords
"TRY003", # No f-strings in raise statements
"EM", # flake8-errmsg
]