tox.ini 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [tox]
  2. skipsdist = True
  3. usedevelop = True
  4. envlist = py{27,34,35}-dj{18,110}-{sqlite,postgres,mysql,mssql}-{elasticsearch5,elasticsearch2,elasticsearch,noelasticsearch},
  5. py{27,34,35,36}-dj111-{sqlite,postgres,mysql}-{elasticsearch5,elasticsearch2,elasticsearch,noelasticsearch},
  6. flake8
  7. [flake8]
  8. # D100: Missing docstring in public module
  9. # D101: Missing docstring in public class
  10. # D102: Missing docstring in public method
  11. # D103: Missing docstring in public function
  12. # D105: Missing docstring in magic method
  13. # D200: One-line docstring should fit on one line with quotes
  14. # D202: No blank lines allowed after function docstring
  15. # D204: 1 blank line required after docstring
  16. # D205: 1 blank line required between summary line and description
  17. # D209: Multi-line docstring cloasing quotes should be on a separate line
  18. # D400: First line should end with a period
  19. # D401: First line should be in imperative mood
  20. # E303: Too many blank lines
  21. # E501: Line too long
  22. # N805: First argument of a method should be named 'self'
  23. # N806: Variable in function should be lowercase
  24. ignore = D100,D101,D102,D103,D105,D200,D202,D204,D205,D209,D400,D401,E303,E501,N805,N806
  25. [testenv]
  26. install_command = pip install -e ".[testing]" -U {opts} {packages}
  27. commands =
  28. elasticsearch: coverage run runtests.py wagtail.wagtailsearch wagtail.wagtaildocs wagtail.wagtailimages --elasticsearch
  29. elasticsearch2: coverage run runtests.py wagtail.wagtailsearch wagtail.wagtaildocs wagtail.wagtailimages --elasticsearch2
  30. elasticsearch5: coverage run runtests.py wagtail.wagtailsearch wagtail.wagtaildocs wagtail.wagtailimages --elasticsearch5
  31. noelasticsearch: coverage run runtests.py
  32. basepython =
  33. py27: python2.7
  34. py34: python3.4
  35. py35: python3.5
  36. py36: python3.6
  37. deps =
  38. django-sendfile==0.3.6
  39. Embedly
  40. dj18: Django>=1.8.1,<1.9
  41. dj110: Django>=1.10a1,<1.11
  42. dj111: Django>=1.11b1,<2.0
  43. dj18-mssql: django-pyodbc-azure==1.8.13.0
  44. dj19-mssql: django-pyodbc-azure==1.9.6.0
  45. dj110-mssql: django-pyodbc-azure==1.10.4.0
  46. postgres: psycopg2>=2.6
  47. mysql: mysqlclient==1.3.6
  48. elasticsearch: elasticsearch>=1,<2
  49. elasticsearch2: elasticsearch>=2,<3
  50. elasticsearch5: elasticsearch>=5,<6
  51. elasticsearch5: certifi
  52. setenv =
  53. postgres: DATABASE_ENGINE=django.db.backends.postgresql_psycopg2
  54. mysql: DATABASE_ENGINE=django.db.backends.mysql
  55. mysql: DATABASE_HOST=localhost
  56. mysql: DATABASE_USER=root
  57. # Specific for Appveyor, see:
  58. # https://www.appveyor.com/docs/services-databases/#sql-server-2016
  59. mssql: DATABASE_ENGINE=sql_server.pyodbc
  60. mssql: DATABASE_HOST=(local)\SQL2016
  61. mssql: DATABASE_NAME=master
  62. mssql: DATABASE_USER=sa
  63. mssql: DATABASE_PASS=Password12!
  64. [testenv:flake8]
  65. basepython=python3.4
  66. deps=flake8>=2.2.0
  67. commands=flake8 wagtail