forked from Bachmann1234/diff_cover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
134 lines (122 loc) · 3.33 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
[tool.poetry]
name = "diff_cover"
version = "7.1.1"
description = "Run coverage and linting reports on diffs"
authors = ["See Contributors"]
homepage = "https://github.com/Bachmann1234/diff-cover"
repository = "https://github.com/Bachmann1234/diff-cover"
license = "Apache 2.0"
readme = "README.rst"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Quality Assurance",
]
packages = [
{ include = "diff_cover" }
]
include = [
{path = 'templates/*.txt'},
{path = 'templates/*.html'},
{path = 'templates/*.css'},
{path = 'templates/*.md'},
{path = 'tests/*', format = 'sdist'},
]
[tool.poetry.scripts]
diff-cover = 'diff_cover.diff_cover_tool:main'
diff-quality = 'diff_cover.diff_quality_tool:main'
[tool.poetry.dependencies]
python = "^3.7.2"
Pygments = "^2.9.0"
Jinja2 = ">=2.7.1"
pluggy = ">=0.13.1,<2"
chardet = ">=3.0.0"
tomli = {version = ">=1.2.1", optional = true}
setuptools = { version = ">=17.0.0", python = "<3.8" }
[tool.poetry.dev-dependencies]
pytest-cov = "^4.0.0"
pytest-datadir = "^1.4.1"
pytest-mock = "^3.10.0"
pycodestyle = ">=2.9.1"
flake8 = "^5.0.4"
pyflakes = "^2.5.0"
pylint = "^2.15.3"
pylint-pytest = "^1.1.2"
pydocstyle = "^6.1.1"
black = "^22.8.0"
isort = "^5.10.1"
doc8 = "1.0.0"
[tool.poetry.extras]
toml = ["tomli"]
[build-system]
requires = ["poetry-core>=1.0.7"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
exclude = "tests/fixtures/*"
[tool.isort]
profile = "black"
extend_skip = "tests/fixtures/"
[tool.pylint.master]
max-line-length = 100
load-plugins = [
"pylint_pytest",
]
[tool.pylint."messages control"]
enable = ["all"]
disable = [
# allow TODO comments
"fixme",
# allow disables
"locally-disabled",
"suppressed-message",
# covered by isort
"ungrouped-imports",
# allow classes and functions w/o docstring
"missing-docstring",
# hard number checks can be ignored, because they are covered in code reviews
"too-many-instance-attributes",
"too-many-arguments",
"too-many-locals",
"too-many-branches",
"too-few-public-methods",
"too-many-nested-blocks",
"too-many-public-methods",
# allow methods not to use self
"no-self-use",
# currently some code seems duplicated for pylint
"duplicate-code",
# we are a command line tool and don't want to show all internals
"raise-missing-from",
]
[tool.pylint.basic]
good-names = [
"_",
"i",
"setUp",
"tearDown",
"e",
"ex",
]
no-docstring-rgx = "^_"
[tool.pytest.ini_options]
addopts = "--strict-markers"
xfail_strict = true
markers = [
"disable_all_files_exist: disables the fixture patch_so_all_files_exist",
]
[tool.doc8]
max_line_length = 120