-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
100 lines (73 loc) · 2.01 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "change-ls"
requires-python = ">=3.8"
authors = [
{ name = "Delphy", email = "[email protected]" }
]
dynamic = ["version"]
### setuptools ###
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["change_ls*"]
[tool.setuptools.package-data]
"change_ls.token_server" = ["*.js", "*.wasm"]
[tool.setuptools.dynamic]
version = { attr = "change_ls.CHANGE_LS_VERSION" }
### pytest ###
[tool.pytest.ini_options]
testpaths = [
"."
]
asyncio_mode = "auto"
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"uses_external_resources: marks tests which interact with resources outside the change-ls repo, e.g. external grammar files",
"test_sequence: used to pass a test sequence file to a fixture"
]
### pyright ###
[tool.pyright]
include = [
"change_ls",
"gen",
"test"
]
typeCheckingMode = "strict"
reportPrivateUsage = false
### pylint ###
[tool.pylint.main]
load-plugins = "pylint.extensions.mccabe"
ignore-paths = [
'.*change_ls/types/.*',
'.*change_ls/_languages.py',
'.*test/.*/test_.*',
]
[tool.pylint.messages_control]
disable = [
# 'private' methods are used a lot for interactions between classes that should
# not be exposed as public API.
"protected-access",
# Debatable
"no-else-return",
"no-else-raise",
# Would keep it, but since this has category warning it would fail the CI.
"fixme",
# A lot of built-ins are common names for local variables such as 'any',
# 'next' or 'property'. We risk redefining these for ease of naming and
# rely on the typechecker to catch accidental wrong usages.
"redefined-builtin"
]
[tool.pylint.format]
max-line-length = 120
### isort ###
[tool.isort]
profile = "black"
line_length = 100
### Black ###
[tool.black]
exclude = ".*change_ls/types/.*|.*change_ls/_languages.py"
line-length = 100
target-version = ["py38", "py39", "py310", "py311"]