This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
/
pyproject.toml
108 lines (96 loc) · 3.04 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ward]
path = ["tests"]
exclude = ["tests/resources/"]
[tool.poetry]
name = "ward"
version = "0.68.0b0"
description = "A modern Python testing framework"
exclude = ["tests"]
authors = ["Darren Burns <[email protected]>"]
maintainers = ["Darren Burns <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://ward.readthedocs.io"
repository = "https://github.com/darrenburns/ward"
documentation = "https://ward.readthedocs.io"
keywords = ["test", "testing", "quality-assurance", "cli", "python3"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
]
include = ["ward/py.typed"]
[tool.poetry.dependencies]
python = "^3.7.8"
click = ">=7,<9"
rich = ">=12.2.0"
tomli = ">=1.0.0,<3.0.0"
pprintpp = "^0.4.0"
cucumber-tag-expressions = ">=2.0.0,<5.0.0"
click-default-group = "^1.2.2"
click-completion = "^0.5.2"
pluggy = ">=0.13.1,<2.0.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^2.13.0"
[tool.poetry.group.docs.dependencies]
Sphinx = "^3.5.1"
sphinx-rtd-theme = "^0.5.1"
[tool.poetry.group.test.dependencies]
coverage = {version = "^5.1", extras = ["toml"]}
[tool.poetry.scripts]
ward = "ward._run:run"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: unreachable",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
]
[tool.coverage.run]
branch = true
include = [
"ward/*",
]
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
line_length = 88
[tool.mypy]
show_error_codes = true
warn_unreachable = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
# Disabling incremental mode is required for `warn_unused_configs = true` to work
incremental = false
strict_equality = true
implicit_reexport = false
no_implicit_optional = true
# Ward tests redefine the name "_" a lot
disable_error_code = ["no-redef"]
overrides = [
# These third-party dependencies don't distribute type annotations
{ module = "pprintpp.*", ignore_missing_imports = true },
{ module = "pluggy.*", ignore_missing_imports = true },
{ module = "cucumber_tag_expressions.*", ignore_missing_imports = true },
{ module = "click_completion.*", ignore_missing_imports = true },
{ module = "click_default_group.*", ignore_missing_imports = true },
# TODO: Remove these lines and fix type-checker errors to gradually introduce mypy
{ module = "ward._rewrite.*", ignore_errors = true },
{ module = "ward._collect.*", ignore_errors = true },
{ module = "ward._run.*", ignore_errors = true },
{ module = "conf.*", ignore_errors = true }, # matches docs/source/conf.py
]