-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
58 lines (52 loc) · 1.54 KB
/
tox.ini
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
[tox]
envlist = py3
[testenv]
deps=
-Urrequirements.txt
-Urrequirements_dev.txt
passenv = CI TRAVIS TRAVIS_*
commands = flake8
pytest --cov=airflow_home.plugins.airflow_livy
- codecov
[isort]
line_length = 88
multi_line_output = 3
skip = venv
include_trailing_comma = true
known_first_party = airflow_home,airflow_livy
known_third_party = airflow,jinja2,pyspark,setuptools,requests,responses,deepdiff,pytest
[flake8]
max-line-length = 88
max-complexity = 6
inline-quotes = double
; ignore:
; C812 - Missing trailing comma
; C813 - Missing trailing comma in Python 3
; D100 - Missing docstring in public module
; D100 - Missing docstring in public class
; D102 - Missing docstring in public method
; D103 - Missing docstring in public function
; D104 - Missing docstring in public package
; D105 - Missing docstring in magic method
; D106 - Missing docstring in public nested class
; D107 - Missing docstring in __init_
; D400 - First line should end with a period
; D205 - 1 blank line required between summary line and description
; W503 - line break before binary operator. Contradicts Black default formatting.
ignore = C812,C813,D100,D101,D102,D103,D104,D105,D106,D107,D400,D205,W503
exclude =
# Misc files and virtual env
.git,
__pycache__,
.pytest_cache,
venv,
# Tox env (in case you're running flake8 standalone)
.tox,
# Python package builds
.egg-info,
build,
dist,
# Sessions might contain malformed code due to Jinja templating
sessions,
# Airflow config file
webserver_config.py