-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ruff.toml
More file actions
85 lines (73 loc) · 1.66 KB
/
Copy path.ruff.toml
File metadata and controls
85 lines (73 loc) · 1.66 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
80
81
82
83
84
85
cache-dir = ".cache/ruff"
extend-exclude = [".cache"]
fix = true
line-length = 80
preview = true
src = [".", "src", "tests"]
target-version = "py312"
[format]
docstring-code-format = true
line-ending = "lf"
[lint]
select = ["ALL"]
ignore = [
# Missing docstring in public module
"D100",
# Missing docstring in public class
"D101",
# Missing docstring in public method
"D102",
# Missing docstring in public function
"D103",
# Missing docstring in public package
"D104",
# Missing docstring in magic method
"D105",
# Missing docstring in __init__
"D107",
# Trailing comma missing
"COM812",
# Implicitly concatenated string literals on one line
"ISC001",
# Missing copyright notice at top of file
"CPY001",
]
typing-modules = ["numpy.typing"]
[lint.per-file-ignores]
"**/scripts/*" = [
# `print` found
"T201",
# File {filename} is part of an implicit namespace package. Add an __init__.py.
"INP001",
]
[lint.flake8-import-conventions.extend-aliases]
scipy = "sp"
[lint.flake8-pytest-style]
fixture-parentheses = true
mark-parentheses = true
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.flake8-type-checking]
exempt-modules = ["typing", "typing_extensions"]
strict = true
[lint.isort]
length-sort = true
lines-after-imports = 2
required-imports = ["from __future__ import annotations"]
section-order = [
"future",
"standard-library",
"third-party",
"testing",
"first-party",
"local-folder",
]
known-first-party = ['vecmodel']
[lint.isort.sections]
testing = ["pytest", "pytest_mock", "hypothesis"]
[lint.mccabe]
max-complexity = 6
[lint.pycodestyle]
max-doc-length = 80
[lint.pydocstyle]
convention = "google"