-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
105 lines (93 loc) · 2.13 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
[tool.poetry]
name = "yls"
version = "1.4.3"
description = "YARA Language Server"
authors = ["Matej Kašťák <[email protected]>"]
maintainers = ["Matej Kašťák <[email protected]>"]
readme = "README.md"
license = "MIT"
include = ["py.typed", "LICENSE", "LICENSE-THIRD-PARTY"]
[tool.poetry.group.dev.dependencies]
black = "^24.8.0"
isort = "^5.13.2"
poethepoet = "^0.29.0"
pytest = "^8.3.3"
pytest-asyncio = "^0.24.0"
pytest-black = "^0.3.12"
pytest-cov = "^5.0.0"
pytest-mock = "^3.14.0"
pytest-mypy = "^0.10.3"
pytest-pylint = "^0.21.0"
pytest-yls = {path = "./pytest-yls", develop = true}
[tool.black]
line-length = 100
skip-magic-trailing-comma = true
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| env
| venv
)/
'''
[tool.isort]
profile = "black"
force_single_line = true
[tool.poe.tasks]
_black = "black ."
_isort = "isort ."
format = ["_isort", "_black"]
test = "pytest -vvv --mypy --black --pylint --pylint-rcfile=pyproject.toml --cov=yls --cov-report=term-missing -l ./yls ./tests"
[tool.poetry.scripts]
yls = 'yls.server:main'
[tool.poetry.dependencies]
python = "^3.8"
pygls = "^1.3.1"
yaramod = "^3.23.0"
yari-py = "^0.2.1"
pluggy = "^1.0.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = [
"tests"
]
[tool.mypy]
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_untyped_decorators = false
ignore_missing_imports = true
strict = true
warn_unused_ignores = true
[tool.pylint.master]
good-names = "ls,logger,x,y,c,e,i,j,n,m,f"
ignored-classes = "_HookRelay"
extension-pkg-allow-list = "yaramod"
[tool.pylint.messages_control]
disable = """,
cyclic-import,
fixme,
line-too-long,
logging-format-interpolation,
logging-fstring-interpolation,
missing-class-docstring,
missing-function-docstring,
missing-module-docstring,
no-else-return,
redefined-outer-name,
too-few-public-methods,
too-many-arguments,
too-many-return-statements,
wrong-import-order
"""