summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorAlexandre Gramfort <alexandre.gramfort@m4x.org>2019-07-09 16:48:36 +0200
committerAlexandre Gramfort <alexandre.gramfort@m4x.org>2019-07-09 16:48:36 +0200
commit1b00740a39f90f1e0bc7dc3a35723560c9ab4e97 (patch)
tree87f43f8f13cf82497999b7f7ea6b6e25fbddcb68 /setup.cfg
parent952503e02b1fc9bdf0811b937baacca57e4a98f1 (diff)
first pass with adding pydocstyle in makefile
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg18
1 files changed, 18 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index aa0ff62..6be91fe 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -4,3 +4,21 @@ description-file = README.md
[flake8]
exclude = __init__.py
ignore = E265,E501,W605,W503,W504
+
+[tool:pytest]
+addopts =
+ --showlocals --durations=20 --doctest-modules -ra --cov-report= --cov=ot
+ --doctest-ignore-import-errors --junit-xml=junit-results.xml
+ --ignore=docs --ignore=examples --ignore=notebooks
+
+[pycodestyle]
+exclude = __init__.py,*externals*,constants.py,fixes.py
+ignore = E241,E305,W504
+
+[pydocstyle]
+convention = pep257
+match_dir = ^(?!\.|docs|examples).*$
+match = (?!tests/__init__\.py|fixes).*\.py
+add-ignore = D100,D104,D107,D413
+add-select = D214,D215,D404,D405,D406,D407,D408,D409,D410,D411
+ignore-decorators = ^(copy_.*_doc_to_|on_trait_change|cached_property|deprecated|property|.*setter).*