-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
56 lines (48 loc) · 1.84 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
# Wheels are the standard for distributing Python packages and are replacing
# eggs
# https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
# http://pythonwheels.com/
# Python configuration file for users to override setup.y, see:
# https://docs.python.org/3/distutils/configfile.html
[metadata]
description-file = README.rst
license_file = LICENSE
# The following is from: https://github.com/pypa/sampleproject/blob/master/setup.cfg
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
# project_quickstart runs only on py3.6 at the moment
# Use this if:
# 1. Your project runs on Python 2 and 3 with no changes (i.e. it does not require 2to3).
# 2. Your project does not have any C extensions.
# https://packaging.python.org/distributing/#configuring-your-project
universal = 0
# Others:
[flake8]
max-line-length = 100
ignore =
# E129 # Visually indented line with same indent as next logical line
E251 # asks for no spaces around =, /, etc.
W503 # doesn't allow line breaks before binary operators
E116 # unexpected indentation (comment)
exclude = setup.py,
.git,
__pycache__,
docs/conf.py,
build,
dist,
templates/project_template/setup.py,
templates/project_template/docs/conf.py,
templates/script_templates/,
templates/examples/,
templates/report_templates/conf.py,
tests/ref_files/
#max-complexity = 10
[tool:pytest]
addopts = -v --ignore=templates/
testpaths = tests
python_files = test_*.py
# This is needed to allow helper functions to be imported:
norecursedirs = tests/helpers,
tests/ref_files