-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
150 lines (132 loc) · 3.06 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
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
[metadata]
name = hello-python
version = attr: hello_python.version.__version__
description = A Python module project skeleton
long_description = file: README.md
long_description_content_type = text/markdown
project_urls =
Documentation = http://hello-python.readthedocs.io
Source Code = https://github.com/PythonSanSebastian/hello-python
Bug Tracker = https://github.com/PythonSanSebastian/hello-python/issues
Changelog = https://github.com/PythonSanSebastian/hello-python/blob/master/CHANGELOG.md
author = Alexandre M. Savio
author_email = info@pyss.org
license = Apache License Version 2.0
license-file = LICENSE
keywords =
python
skeleton
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Other Environment
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
[options]
python_requires = >=3.7
packages=find:
include_package_data = True
test_suite = tests
setup_requires =
wheel
setuptools
pytest-runner
install_requires =
tests_require =
pytest
arrow==3.4
[options.extras_require]
arrow =
arrow==3.4
[pydocstyle]
inherit = false
convention = numpy
match = (?!test_).*\.py
ignore-decorators = property
[pycodestyle]
max-line-length = 120
[flake8]
max-line-length = 120
max-complexity = 10
select = C,E,F,W,B,B950
ignore = E501,E126
[isort]
multi_line_output = 3
include_trailing_comma = True
use_parentheses = True
force_single_line = False
indent = 4
line_length = 79
wrap_length = 60
not_skip = __init__.py
length_sort = True
known_first_party = hello_python
known_third_party = pytest
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
[mypy]
python_version = 3.7
ignore_missing_imports = True
warn_unused_configs = True
[tox:tox]
envlist =
lint,
doclint,
isort,
mypy,
tests
skipsdist = True
[tool:pytest]
filterwarnings =
ignore::DeprecationWarning
norecursedirs =
node_modules
[coverage:run]
branch = True
[coverage:report]
include =
hello_python/*
omit =
*/tests/*
[testenv]
basepython = python3
whitelist_externals = make
deps =
lint: flake8
lint: flake8-bugbear
doclint: pydocstyle
isort: isort
mypy: mypy
passenv =
CI = 1
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}
TESTING = True
commands =
lint: flake8 hello_python
isort: isort -c -rc hello_python
mypy: mypy hello_python
doclint: pydocstyle --convention=numpy
[testenv:tests]
deps =
coverage
commands =
python -m pip install -e .
coverage run -m pytest
coverage report
[testenv:docs]
deps = -rdocs/requirements.txt
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[bumpversion]
current_version = 0.0.1
commit = True
tag = False
tag_name = "v{new_version}"
[bumpversion:file:hello_python/version.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[bumpversion:file:setup.py]
search = version="{current_version}",
replace = version="{new_version}",