-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
135 lines (117 loc) · 3.65 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
128
129
130
131
132
133
134
135
[project]
name = "cfn-lsp-extra"
description = "Cfn Lsp Extra"
authors = [{name = "Laurence Warne", email = "[email protected]"}]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/laurencewarne/cfn-lsp-extra"
repository = "https://github.com/laurencewarne/cfn-lsp-extra"
classifiers = ["Topic :: Software Development"]
requires-python = ">=3.8,<4"
dependencies = [
"click (>=8.1.7,<9.0.0)",
"cfn-lint (>=1.22.1,<2.0.0)",
"pygls (>=1.3.1,<2.0.0)", # pygls = { path = "../pygls/", develop = false },
"PyYAML (>=6.0.2,<7.0.0)",
"types-PyYAML (>=6.0.2,<7.0.0)",
"platformdirs (>=4.3.6)",
"attrs (>=24.2,<26.0)",
"importlib_resources (>=6.4.0)",
# Need to pin a version otherwise 'poetry update' goes crazy
"aws-sam-translator (>=1.94.0)",
"botocore (>=1.35.81)",
]
dynamic = ["version"]
[tool.poetry]
version = "0.0.0"
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
[tool.poetry-dynamic-versioning]
enable = true
[project.urls]
Homepage = "https://github.com/laurencewarne/cfn-lsp-extra"
Documentation = "https://github.com/laurencewarne/cfn-lsp-extra/blob/master/README.md"
Repository = "https://github.com/laurencewarne/cfn-lsp-extra"
Issues = "https://github.com/laurencewarne/cfn-lsp-extra/issues"
Changelog = "https://github.com/laurencewarne/cfn-lsp-extra/blob/master/CHANGELOG.md"
[tool.poetry.group.dev.dependencies]
coverage = {extras = ["toml"], version = ">=6.2"}
ruff = "^0.9.5"
mypy = "^1.14.1"
pytest = "^8.3.3"
pytest-asyncio = "^0.24.0"
pytest-mock = "^3.14"
# https://github.com/swyddfa/lsp-devtools
pytest-lsp = "^0.4.3" #pytest-lsp = { path = "../lsp-devtools/lib/pytest-lsp/"}
python-lsp-server = "^1.12.1"
pylsp-mypy = "^0.6.8"
python-lsp-ruff = "^2.2.1"
nox = "^2024.10.9"
# Optional: https://python-poetry.org/docs/pyproject/#optional-dependencies
[project.optional-dependencies]
parse = [
"lxml (>=5.2.1,<6.0.0)",
"markdownify (>=0.12.1,<0.15.0)",
"beautifulsoup4 (>=4.12.3,<5.0.0)",
"types-beautifulsoup4 (>=4.12.0,<5.0.0)",
"requests (>=2.32.3,<3.0.0)",
"types-requests (>2,<3.0.0)"
]
[project.scripts]
cfn-lsp-extra = "cfn_lsp_extra.__main__:main"
[tool.coverage.paths]
source = ["cfn_lsp_extra", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["cfn_lsp_extra"]
omit = ["cfn_lsp_extra/scrape/*", "cfn_lsp_extra/server.py", "cfn_lsp_extra/__main__.py"]
[tool.coverage.report]
show_missing = true
fail_under = 80
[tool.mypy]
strict = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
[[tool.mypy.overrides]]
module = "cfnlint.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = ["integration: mark the test as an integration test"]
asyncio_default_fixture_loop_scope = "function"
[tool.ruff]
exclude = [
"tests", # MAYBE shouldn't be excluding this
"bin"
]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # Pycodestyle
"W", # Pycodestyle
"I", # isort
"N", # PEP8 naming
"B", # flake8-bugbear
"PIE", # flake8-pie
"SIM", # flake8-simplify
"Q", # flake8-quotes
"RET", # flake8-return
"A", # flake8-builtins
]
ignore = [
# "W503", # line break before binary operator
"E203", # whitespace before ':'
"E501", # line too long
"E731", # do not assign a lambda expression, use a def
# "E704" # multiple statements on one line (def)
]
exclude = [
"tests"
]
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"