-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
127 lines (114 loc) · 2.49 KB
/
pyproject.toml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.mypy]
strict = true
show_error_codes = true
show_column_numbers = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "lintrunner_adapters.adapters.*"
warn_unused_ignores = false
[tool.poetry]
name = "lintrunner-adapters"
version = "0.12.4"
description = "Adapters and tools for lintrunner"
authors = ["Justin Chu <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/justinchuby/lintrunner-adapters"
keywords = ["lintrunner", "lint", "cli", "sarif", "linting", "ci", "linter", "flake8", "clippy", "ruff", "rustfmt", "github-code-scanning"]
classifiers = [
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
]
packages = [{include = "lintrunner_adapters"}]
include = ["LICENSE"]
[tool.poetry.dependencies]
python = "^3.7"
click = "^8.1.3"
[tool.poetry.group.dev.dependencies]
lintrunner = "^0.10.0"
pytest = "^7.2.0"
types-pyyaml = "^6.0.12.2"
[tool.poetry.scripts]
lintrunner_adapters = 'lintrunner_adapters.__main__:cli'
[tool.pylint.messages_control]
disable = [
"duplicate-code",
"fixme",
"format",
"import-error",
"invalid-name",
"line-too-long",
"missing-docstring",
"no-member",
"too-few-public-methods",
"too-many-arguments",
"too-many-instance-attributes",
# Repo specific ones
"broad-except",
"broad-except",
"consider-using-f-string",
"logging-fstring-interpolation",
"no-else-continue",
"redefined-builtin",
"redefined-outer-name",
"subprocess-run-check",
"too-many-return-statements",
"unnecessary-pass",
"unused-argument",
"unused-import",
]
[tool.pytest.ini_options]
addopts = "--doctest-modules"
[tool.refurb]
python_version = "3.7"
disable = ["FURB101", "FURB150"] # disable suggestions using pathlib
[tool.ruff]
target-version = "py37"
ignore-init-module-imports = true
select = [
"B",
"C4",
"D",
"E",
"F",
"FURB",
"G",
"I",
"ISC",
"LOG",
"N",
"NPY",
"PLC",
"PLE",
"PLW",
"PYI",
"RUF",
"SIM",
"TID252",
"UP",
"W",
"YTT",
]
ignore = [
"C408",
"D1",
"D202",
"D205",
"D212",
"D400",
"D401",
"D415",
"E501",
]
line-length = 88
indent-width = 4
[tool.ruff.pydocstyle]
convention = "google"
[tool.tomlsort]
spaces_indent_inline_array = 4
trailing_comma_inline_array = true