-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (96 loc) · 2.36 KB
/
pyproject.toml
File metadata and controls
101 lines (96 loc) · 2.36 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[project]
name = "vim-code-runner"
authors = [
{name = "Zahar Chernenko", email = "zaharchernenko35@gmail.com"},
]
version = "1.0.2"
requires-python = ">=3.10"
[dependency-groups]
dev = [
"commitlint>=1.3.0",
"mypy>=0.910",
"pre-commit>=1.21.0",
"pylint>=2.6.2",
"pytest>=6.1.2,<8.0.0",
"pytest-lazy-fixture>=0.6.3",
"pytest-mock>=3.5.1",
"ruff>=0.12.0",
]
pre-commit = [
"mypy>=0.910",
"pre-commit>=1.21.0",
"pylint>=2.6.2",
"ruff>=0.12.0",
]
test = [
"pytest>=6.1.2,<8.0.0",
"pytest-lazy-fixture>=0.6.3",
"pytest-mock>=3.5.1",
]
[tool.pytest.ini_options]
pythonpath = ["."] # to run without python -m, otherwise there will be no src in the path
testpaths = ["tests"]
[tool.mypy]
check_untyped_defs = true
explicit_package_bases = true # without this, mypy complains about duplicate packages.
ignore_missing_imports = true
disable_error_code = [
"attr-defined",
"import-untyped",
"union-attr",
]
[tool.ruff]
line-length = 120
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
extend-select = ["I", "F401"]
extend-unsafe-fixes = ["F401"]
ignore = ["W292"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # ignore unused imports
]
"conftest.py" = [
"E402",
"F401",
"F811",
]
[tool.pylint]
[tool.pylint.main]
ignore-paths = ["^tests/unit/", "^.venv/"]
init-hook = """
import os, sys
cur_dir = os.getcwd()
sys.path.append(cur_dir)
"""
[tool.pylint.format]
max-line-length = 120
[tool.pylint.messages_control]
disable = [
"duplicate-code",
"missing-module-docstring",
"missing-function-docstring",
"missing-class-docstring",
"trailing-newlines",
"too-few-public-methods",
"too-many-arguments",
"too-many-positional-arguments",
"too-many-instance-attributes",
"raise-missing-from",
"line-too-long",
]
ignored-modules = ["vim"]
[tool.pylint.VARIABLES]
argument-naming-style = "snake_case"
attr-naming-style = "snake_case"
class-attribute-naming-style = "any"
class-const-naming-style = "UPPER_CASE"
class-rgx="^(((I|T|E)[A-Z][a-zA-Z0-9]*)|([A-Z][a-zA-Z0-9]*(Error|Protocol)))$"
const-naming-style= "any"
function-naming-style = "snake_case"
typealias-rgx="^(((I|T|E)[A-Z][a-zA-Z0-9]*)|([A-Z][a-zA-Z0-9]*(Error|Protocol)))$"
typevar-rgx="^[A-Z][a-zA-Z0-9]*Type$"
variable-naming-style = "snake_case"
module-naming-style = "snake_case"
inlinevar-naming-style = "any"