forked from nmoroze/tclint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (78 loc) · 1.89 KB
/
pyproject.toml
File metadata and controls
90 lines (78 loc) · 1.89 KB
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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "tclint"
dynamic = ["version"]
description = "A CLI utility for linting and analyzing Tcl code."
license = {text = "MIT License"}
authors = [
{name = "Noah Moroze", email = "me@noahmoroze.com"}
]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"ply==3.11",
"tomli~=2.0.1; python_version < '3.11'",
"pathspec==0.11.2",
"importlib-metadata==6.8.0",
"pygls==1.3.1",
"voluptuous==0.15.2",
]
[dependency-groups]
dev = [
{include-group = "format"},
{include-group = "lint"},
{include-group = "test"}
]
format = [
"black==23.11.0",
]
lint = [
"flake8==6.1.0",
"mypy==1.9.0",
"codespell==2.3.0",
"isort==7.0.0",
]
test = [
"pytest==8.2.0",
"pytest-timeout==2.2.0",
"pytest-lsp==0.4.3",
# TODO: remove this entry if we standardize on uv (in favor of
# `tool.uv.constraint-dependencies`).
"pytest-asyncio==0.24",
]
[project.scripts]
tclint = "tclint.cli.tclint:main"
tclfmt = "tclint.cli.tclfmt:main"
tclsp = "tclint.cli.tclsp:main"
[project.entry-points."tclint.plugins"]
expect = "tclint.plugins.expect"
[tool.pytest.ini_options]
testpaths = ["tests"]
timeout = 10
# Silences a warning from pytest-lsp
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.setuptools_scm]
version_file = "src/tclint/_version.py"
[tool.mypy]
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"ply.*",
]
ignore_missing_imports = true
[tool.black]
preview = true
[tool.uv]
constraint-dependencies = [
# Included by pytest-lsp, this version is required to support
# `asyncio_default_fixture_loop_scope`.
"pytest-asyncio>=0.24"
]
[tool.isort]
profile = "black"
# Skip autogenerated file that causes problems in CI. Extend to ensure default skip
# applies.
extend_skip = ["_version.py"]