-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
123 lines (110 loc) · 2.32 KB
/
setup.cfg
File metadata and controls
123 lines (110 loc) · 2.32 KB
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
[metadata]
name = py_refacto
url = https://github.com/nymann/refacto
maintainer = Kristian Nymann Jakobsen
maintainer_email = kristian@nymann.dev
description = Refacto
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 =
pygls
libcst
typer
[options.extras_require]
all =
%(dev)s
%(tests)s
dev =
add-trailing-comma
black
isort
mypy
nitpick
wemake-python-styleguide
tests =
devtools
pytest
pytest-cov
pytest-mock
[options.packages.find]
where = src
[options.entry_points]
console_scripts =
refacto = refacto.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/refacto/version.py
source =
src
tests
[coverage:paths]
source =
src
[aliases]
test=pytest
[pydocstyle]
convention=google
[flake8]
exclude =
tests/test_cases/
max-imports = 16
docstring-style = google
format = wemake
ignore = WPS305,D100,D101,D102,D103,D104,D105,D106,D107,H601,WPS306,E203,WPS115
max-complexity = 6
max-line-length = 120
show-source = True
strictness = long
inline-quotes = double
per-file-ignores =
tests/**.py:WPS218,WPS432,WPS442,S101,WPS211
tests/unit_tests/collector.py:S102,WPS421,WPS602,WPS210,S101,WPS110
src/refacto/version.py:WPS410
src/refacto/refactorings/*.py:N802
[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]
exclude =
tests/test_cases/
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