-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
98 lines (80 loc) · 2.44 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
[tool.poetry]
name = "pysmx"
version = "0.4.0"
description = "Interact with SourceMod plug-ins"
authors = ["Zach Kanzler <they4kman@gmail.com>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "smx" },
{ include = "test", format = "sdist" },
]
include = [
"smx/include/*.inc",
"smx/spcomp/spcomp.*",
{ path = "CHANGELOG.md", format = "sdist" },
{ path = "test/game_root/*", format = "sdist" },
]
[tool.poetry.dependencies]
python = "^3.7"
construct-typing = "^0.5.5"
construct = "^2.10.68"
future-typing = { version = "^0.4.1", python = "<3.10" }
more-bisect = "^0.1.1"
typing-extensions = { version = "^4.5.0", python = "<3.10" }
[tool.poetry.group.dev.dependencies]
icdiff = "^2.0.6"
pytest = "^7.2.1"
pytest-camel-collect = "^1.0.2"
pytest-lambda = "^2.2.0"
tox = "^4.4.5"
[tool.poetry.group.stubgen]
optional = true
[tool.poetry.group.stubgen.dependencies]
click = "^8.1.3"
inflection = ">=0.3.1"
# NOTE(zk): isort does not support 3.7, and while stubgen is only supported on 3.11,
# poetry does not support specifying a python version for a group. To allow
# poetry to lock, we must promise it we will not use isort on 3.7.
isort = { version = "^5.12.0", python = ">=3.8" }
lark-parser = "^0.12.0"
[tool.poetry.scripts]
pysmx_stubgen = { callable = "pysmx_stubgen.cli:stubgen", extras = ["stubgen"] }
[tool.pytest.ini_options]
# Running "pytest" without specifying paths will use these as defaults
testpaths = "test/"
# Directories that are not visited by pytest collector:
norecursedirs = "*.egg .eggs dist build docs .tox .git __pycache__ .mypy_cache .pytest_cache"
# Only search for tests within files matching these patterns
python_files = [
"test.py",
"test_*.py",
]
# Discover tests within classes matching these patterns
python_classes = [
"Test*",
"Case*",
"Context*",
"Describe*",
]
# Only methods matching these patterns are considered tests
python_functions = [
"test_*",
"it_*",
"its_*",
]
# Extra options:
addopts = [
# Verbosity
# 0 - hide test names while running (only showing ".", "F", etc)
# 1 - show full test names while running
# 2 - don't truncate assertion failure printouts (includes full diffs)
"--verbosity=2",
# Show an abbreviated traceback format
"--tb=short",
# Also run doctests found within modules
"--doctest-modules",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"