Skip to content

Commit 33dbd1b

Browse files
committed
changed format settings
1 parent 71f58b5 commit 33dbd1b

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.1.8
3+
rev: v0.6.4
44
hooks:
55
- id: ruff
66
args: [--fix, --exit-non-zero-on-fix]
@@ -21,4 +21,3 @@ repos:
2121
- id: mdformat
2222
additional_dependencies:
2323
- mdformat-gfm
24-
- mdformat-toc

pyproject.toml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ file = [
6565

6666
[tool.ruff]
6767
target-version = "py38"
68-
line-length = 88
68+
line-length = 79
6969
indent-width = 4
7070

7171
[tool.ruff.lint]
@@ -75,15 +75,20 @@ select = ["E4", "E7", "E9", "F", "W", "B", "I"]
7575
[tool.docformatter]
7676
black = true
7777
style = "epytext"
78-
79-
[tool.mypy]
80-
python_version = "3.8"
81-
ignore_missing_imports = true
78+
wrap-summaries = 72
79+
wrap-descriptions = 72
8280

8381
[tool.pyright]
8482
typeCheckingMode = "basic"
83+
reportMissingTypeStubs = "none"
84+
reportPrivateImportUsage = "none"
85+
reportPrivateUsage = "none"
86+
reportIncompatibleVariableOverride = "none"
87+
reportIncompatibleMethodOverride = "none"
88+
reportUnnecessaryIsInstance = "none"
8589

8690
[tool.pytest.ini_options]
91+
testpaths = ["tests"]
8792
addopts = "--disable-warnings"
8893

8994
[tool.coverage.run]
@@ -97,9 +102,17 @@ omit = [
97102
[tool.coverage.report]
98103
exclude_also = [
99104
"def __repr__",
105+
"def __rich_repr__",
106+
"def __str__",
107+
"assert",
100108
"raise AssertionError",
101109
"raise NotImplementedError",
102-
"@(abc\\.)?abstractmethod",
103-
"@(abc\\.)?abstractproperty",
104-
"sys\\.exit",
110+
"except ImportError",
111+
"@abstractmethod",
112+
"@overload",
113+
"(sys\\.)?exit\\(",
114+
"exit\\(",
115+
"cv2\\.imshow",
116+
"cv2\\.waitKey",
117+
"logger\\.",
105118
]

0 commit comments

Comments
 (0)