-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
100 lines (89 loc) · 2.07 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
[tool.poetry]
name = "yls"
version = "1.0.0"
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.black]
line-length = 100
target-version = ['py36', 'py37', 'py38', 'py39']
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"]
[tool.poetry.scripts]
yls = 'yls.server:main'
[tool.poetry.dependencies]
python = "^3.8"
pygls = "^0.11.3"
yaramod = "^3.12.8"
pluggy = "^1.0.0"
[tool.poetry.dev-dependencies]
pytest-asyncio = "^0.18.3"
pytest-cov = "^3.0.0"
pytest-mock = "^3.7.0"
pytest = "^7.1.2"
bandit = "^1.7.4"
pytest-pylint = "^0.18.0"
pytest-mypy = "^0.9.1"
black = "^22.3.0"
isort = "^5.10.1"
poethepoet = "^0.13.1"
pytest-black = "^0.3.12"
pytest-yls = "^0.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "-vvv --cov-report term-missing --cov=yls -l --pylint --pylint-rcfile=pyproject.toml --mypy --black ./yls ./tests"
asyncio_mode = "auto"
[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,
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
"""