-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
119 lines (106 loc) · 2.29 KB
/
setup.cfg
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
[metadata]
name = pdf_scrub
url = "https://github.com/nymann/pdf-scrub"
maintainer = Kristian Nymann Jakobsen
maintainer_email = [email protected]
description = PDF Scrub
long_description = file: README.md
long_description_content_type = text/markdown
[options]
packages = find:
include_package_data = true
package_dir = = src
python_requires = >= 3.9
setup_requires =
pytest-runner
install_requires =
typer >= 0.4.1
block-pruner >= 0.0.4
pdf-information
[options.extras_require]
all =
%(dev)s
%(tests)s
dev =
isort
wemake-python-styleguide
mypy
black
nitpick
add-trailing-comma
tests =
pytest
pytest-cov
pytest-mock
[options.packages.find]
where = src
[options.entry_points]
console_scripts =
pdf_scrub = pdf_scrub.main:app
[tool:pytest]
testpaths = tests
addopts =
--color=yes
--cov-report=xml
--cov-report=html
--cov=src
--cov-report=term-missing
[coverage:run]
branch = true
omit = src/pdf_scrub/version.py
source =
src
tests
[coverage:paths]
source =
src
[aliases]
test=pytest
[pydocstyle]
convention=google
[flake8]
docstring-style = google
format = wemake
ignore =
WPS305 # allow f-string
WPS306 # allow class without base class (implicit object)
D100,D101,D102,D103,D104,D107 # docstrings are a code smell and should not be required.
max-complexity = 6
max-line-length = 120
max-module-members = 8
show-source = True
strictness = long
inline-quotes = double
per-file-ignores =
tests/**.py:WPS218,WPS432,WPS442,S101,
src/pdf_scrub/version.py:WPS410
[isort]
combine_as_imports = True
force_grid_wrap = 0
force_single_line = True
force_sort_within_sections = True
include_trailing_comma = True
lexicographical = True
line_length = 120
multi_line_output = 3
single_line_exclusions = typing
src_paths = src,tests
[mypy]
allow_redefinition = False
check_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_calls = True
disallow_untyped_decorators = False
disallow_untyped_defs = True
ignore_errors = False
ignore_missing_imports = True
implicit_reexport = False
local_partial_types = True
no_implicit_optional = True
strict_equality = True
strict_optional = True
warn_no_return = True
warn_redundant_casts = True
warn_unreachable = True
warn_unused_configs = True
warn_unused_ignores = True