-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
184 lines (172 loc) · 5.37 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[tool.poetry]
name = "pytest-prefer-nested-dup-tests"
version = "0.1.1dev"
description = "A Pytest plugin to drop duplicated tests during collection, but will prefer keeping nested packages."
authors = ["Marximus Maximus <[email protected]>"]
license = "MIT"
maintainers = ["Marximus Maximus <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests"
repository = "https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests"
documentation = "https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests"
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: Pytest",
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
]
include = [
"CHANGELOG.rst",
"tests"
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests/issues"
"Source" = "https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests"
"Documentation" = "https://github.com/MarximusMaximus/pytest-prefer-nested-dup-tests"
[tool.poetry.plugins]
[tool.poetry.plugins."pytest11"]
"prefer-nested-dup-tests" = "pytest_prefer_nested_dup_tests"
[tool.poetry.dependencies]
python = ">=3.8,<4"
pytest = "^7.1.1"
[tool.poetry.dev-dependencies]
pytest-cov = "^3.0.0"
pipdeptree = "^2.2.1"
tox = "^3.25.1"
pytest-sugar = "^0.9.5"
mypy = "^0.971"
black = "^22.6.0"
Pygments = "^2.13.0"
restructuredtext-lint = "^1.4.0"
pytest-html = "^3.1.1"
pre-commit = "^2.20.0"
pip-licenses = "^3.5.4"
flake8 = "^5.0.4"
flake8-bugbear = "^22.8.23"
flake8-docstrings = "^1.6.0"
flake8-commas = "^2.1.0"
flake8-pyi = "^22.8.2"
colorama = "^0.4.5"
blacken-docs = "^1.12.1"
pre-commit-hooks-safety = {git = "https://github.com/Lucas-C/pre-commit-hooks-safety.git", rev = "v1.2.4"}
pygrep = "^0.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# these options are used when running pytest directly on the command line,
# via vscode, and during the 'coverage' env of tox
[tool.pytest.ini_options]
minversion = 7.1
# make XPASS ("unexpectedly passing") result to fail the test suite
xfail_strict = true
addopts = [
# report details (verbose)
"-v",
# report the local variables for every failure with the stacktrace
"-l",
# report the reasons for all tests that skipped, xfailed, xpassed, etc EXCEPT passed/Passed w/ Output
"-ra",
# execute doctests directly from docstrings of your classes and functions
"--doctest-modules",
"--doctest-continue-on-failure",
# coverage (configured via .coveragerc)
"--cov",
# track contexts in which lines are called
"--cov-context=test",
# output coverage to terminal
"--cov-report=term",
# output coverage as html report (for human browsing from CI)
"--cov-report=html",
# output coverage as xml report (for CI reporting and VSCode reporting)
"--cov-report=xml",
# show local variable values in traceback
"--showlocals",
# raise errors if using an unregistered marker
"--strict-markers",
# raise errors if the config is bad
"--strict-config",
# let's adopt the future mode already
"--import-mode=importlib",
# generate html report of test results (use the 'coverage' name for env b/c this is also used by that tox env)
"--html=.reports/test-report-coverage.html",
# html report should be single file
"--self-contained-html",
]
filterwarnings = [
"error",
]
log_cli_level = "debug"
testpaths = ["."]
pythonpath = ["."]
[tool.black]
target-version = [
'py38',
'py39',
'py310',
]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
)/'''
# [tool.isort]
# verbose = true
# conda_env = "pytest-prefer-nested-dup-tests"
# multi_line_output = 3
# force_grid_wrap = 1
# indent = 4
# use_parentheses = true
# atomic = true
# lines_between_sections = 1
# include_trailing_comma = true
# force_alphabetical_sort_within_sections = true
# force_sort_within_sections = true
# group_by_package = true
# # ignore_comments = true
# remove_redundant_aliases = true
# # profile = "black"
# py_version = 38
# color_output = true
# src_paths = ["src", "tests"]
# sections = [
# "FUTURE",
# "STDLIB",
# "DJANGOFIRST",
# "DJANGOTHIRD",
# "PANDAS",
# "THIRDPARTY",
# "FIRSTPARTY",
# "LOCALFOLDER",
# ]
# default_section="THIRDPARTY"
# extra_standard_library = []
# known_djangofirst = ["django"]
# known_djangothird = [""]
# known_pandas = ["pandas","numpy"]
# known_third_party = []
# known_first_party = []
# known_local_folder = []
# comment_prefix = ""
# # import_heading_stdlib = "#===============================================================================\n#region Standard Library\n"
# # import_footer_stdlib = "\n#endregion Standard Library\n#==============================================================================="
# import_heading_stdlib = "#region Standard Library"
# import_footer_stdlib = "#endregion Standard Library"