Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

tox.ini 1.3 KB

You have to be logged in to leave a comment. Sign In
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
  1. # Tox (http://tox.testrun.org/) is a tool for running tests
  2. # in multiple virtualenvs. This configuration file will run the
  3. # test suite on all supported python versions. To use it, "pip install tox"
  4. # and then run "tox" from this directory.
  5. [tox]
  6. envlist = black-format,flake8,pydocstyle,py{36,37,38}
  7. [flake8]
  8. max-line-length = 120
  9. exclude =
  10. build/
  11. .git
  12. __pycache__
  13. .tox
  14. venv/
  15. max-complexity = 10
  16. ignore =
  17. C901,
  18. E203, # whitespace before ':': Black disagrees with and explicitly violates this.
  19. FI10,
  20. FI12,
  21. FI13,
  22. FI14,
  23. FI15,
  24. FI16,
  25. FI17,
  26. FI18, # __future__ import "annotations" missing -> check only Python 3.7 compatible
  27. FI50,
  28. FI51,
  29. FI52,
  30. FI53,
  31. FI54,
  32. FI55,
  33. FI56,
  34. FI57,
  35. W503
  36. require-code = True
  37. [testenv]
  38. commands =
  39. pytest --cov=pipelines --cov-append {posargs}
  40. coverage report --fail-under=0
  41. deps = .[test]
  42. depends =
  43. {py36,py37,py38}: clean
  44. [testenv:flake8]
  45. skipdist = true
  46. skip_install = true
  47. deps = flake8
  48. commands = flake8
  49. [testenv:black-format]
  50. deps = black
  51. commands =
  52. black -l 100 ./
  53. [testenv:black-check]
  54. deps = black
  55. commands =
  56. black -l 100 --check ./
  57. [testenv:clean]
  58. skip_install = true
  59. deps = coverage
  60. commands = coverage erase
  61. [testenv:pydocstyle]
  62. deps = pydocstyle
  63. commands =
  64. pydocstyle pipelines
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...