-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (66 loc) · 3.26 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (66 loc) · 3.26 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
[project]
name = "baremetal_support"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = [
"bottle>=0.12.16",
"requests>=2.21.0",
"openqa_client",
"cfg_load",
]
[dependency-groups]
dev = [
"ruff>=0.15",
"ty>=0.0.26",
"pytest>=4.3.1",
"pytest-cov>=2.6.1",
"codecov",
]
[tool.ruff]
line-length = 120
preview = true
[tool.ruff.lint]
extend-select = [
"E", "F", "D", "Q", "PL",
"debugger", "T2", "TD", "W", "I", "ERA", "B", "SIM", "C4", "T10", "FIX",
"ISC", "ICN", "INP", "PIE", "T20", "RSE", "RET", "SLF", "FURB", "EXE",
"BLE", "A", "DTZ", "LOG", "G", "C90", "PERF", "PGH", "ARG", "RUF", "ANN",
"S", "FBT", "TRY", "DOC", "YTT", "ASYNC", "COM", "CPY", "EM", "INT", "PYI",
"PT", "SLOT", "TID", "TC", "PTH", "FLY", "NPY", "PD", "N", "PLE", "PLR",
"PLW", "FA", "UP",
]
ignore = [
"incorrect-blank-line-before-class", "len-test", "multi-line-summary-second-line", "too-many-public-methods", "docstring-missing-returns", "docstring-missing-exception", "missing-trailing-comma",
"undocumented-public-module", "undocumented-public-class", "undocumented-public-method", "undocumented-public-function", "undocumented-public-package", "undocumented-public-init", "missing-trailing-period", "missing-terminal-punctuation",
"missing-type-function-argument", "missing-type-args", "missing-type-kwargs", "missing-return-type-undocumented-public-function", "missing-return-type-private-function", "missing-return-type-special-method", "missing-return-type-static-method", "missing-return-type-class-method", "any-type",
"logging-string-concat",
"too-many-locals", "too-many-statements", "magic-value-comparison",
"private-member-access",
"request-without-timeout",
"raise-vanilla-args", "try-consider-else",
"import-outside-top-level",
"invalid-class-name", "error-suffix-on-exception-name",
"pytest-incorrect-pytest-import",
"raw-string-in-exception",
"missing-copyright-notice", "unspecified-encoding", "builtin-open", "hardcoded-bind-all-interfaces", "collapsible-if", "expr-and-false", "reimplemented-builtin", "needless-bool",
"too-many-blank-lines", "first-word-uncapitalized", "error-instead-of-exception", "raise-without-from-inside-except", "no-self-use", "superfluous-else-return", "superfluous-else-raise", "superfluous-else-continue",
"builtin-argument-shadowing", "raise-within-try", "useless-try-except", "literal-membership", "boolean-type-hint-positional-argument", "boolean-default-value-positional-argument", "boolean-positional-value-in-call",
"compare-to-empty-string", "print", "non-augmented-assignment",
"redundant-open-modes", "unnecessary-if", "too-many-statements-in-try-clause",
"builtin-variable-shadowing", "no-slots-in-str-subclass", "subclass-builtin",
]
[tool.ruff.lint.mccabe]
max-complexity = 9
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["magic-value-comparison", "any-type", "too-many-arguments", "assert", "hardcoded-password-string", "hardcoded-password-func-arg", "too-many-positional-arguments", "undocumented-public-function"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.coverage.run]
source = ["baremetal_support"]
branch = true
[tool.coverage.report]
fail_under = 100
show_missing = true
skip_covered = true