-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
64 lines (54 loc) · 1.66 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
# Some ideas from https://github.com/pandas-dev/pandas/blob/master/setup.cfg
# Others from https://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files
[aliases]
test=pytest
[bdist_wheel]
universal = true
# See the docstring in versioneer.py for instructions. Note that you must
# re-run 'versioneer.py setup' after changing this section, and commit the
# resulting files.
[flake8]
max-line-length = 88
exclude =
doc/sphinxext/*.py,
doc/build/*.py,
doc/temp/*.py,
.eggs/*.py,
versioneer.py,
env # exclude asv benchmark environments from linting
.git
__pycache__
build/
dist/
[tool.black]
line-length = 88
skip-string-normalization = true
[flake8-rst]
bootstrap =
import numpy as np
import pandas as pd
np # avoiding error when importing again numpy or pandas
pd # (in some cases we want to do it to show users)
[tool:pytest]
minversion = 4.0.2
testpaths = tests
markers =
single: mark a test as single cpu only
slow: mark a test as slow
network: mark a test as network
db: tests requiring a database (mysql or postgres)
high_memory: mark a test as a high-memory only
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
xfail_strict = True
filterwarnings =
error:Sparse:FutureWarning
error:The SparseArray:FutureWarning
addopts = --cov=reviews_microservice
# To be kept consistent with "Import Formatting" section in contributing.rst
[isort]
known_third_party=Cython,numpy,dateutil,matplotlib,python-dateutil,pytz,pyarrow,pytest, pandas
multi_line_output=3
line_length=88
force_grid_wrap=0
combine_as_imports=True
force_sort_within_sections=True