You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

156 lines
3.5 KiB

1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. [tool.poetry]
  2. name = "doccano"
  3. version = "1.8.3"
  4. description = "doccano, text annotation tool for machine learning practitioners"
  5. authors = ["Hironsan <hiroki.nakayama.py@gmail.com>"]
  6. license = "MIT"
  7. readme = "README.md"
  8. homepage = "https://doccano.github.io/doccano/"
  9. repository = "https://github.com/doccano/doccano"
  10. documentation = "https://doccano.github.io/doccano/"
  11. classifiers = [
  12. "Programming Language :: Python",
  13. "Programming Language :: Python :: 3.8",
  14. ]
  15. packages = [
  16. { include = "backend", from = ".." },
  17. ]
  18. include = [
  19. "backend/client/dist/**/*",
  20. "backend/staticfiles/**/*"
  21. ]
  22. exclude = [
  23. "backend/filepond-temp-uploads",
  24. "backend/media",
  25. "backend/db.sqlite3*",
  26. "backend/poetry.lock"
  27. ]
  28. [tool.poetry.extras]
  29. mssql = ["django-mssql-backend"]
  30. postgresql = ["psycopg2-binary"]
  31. [tool.poetry.scripts]
  32. doccano = 'backend.cli:main'
  33. [tool.poetry.dependencies]
  34. python = "^3.8"
  35. Django = "^4.1.7"
  36. environs = "^9.5.0"
  37. furl = "^2.1.3"
  38. djangorestframework = "^3.14.0"
  39. django-filter = "^22.1"
  40. django-polymorphic = "^3.1.0"
  41. django-cors-headers = "^3.13.0"
  42. drf-yasg = "^1.21.5"
  43. django-rest-polymorphic = "^0.1.9"
  44. chardet = "^4.0.0"
  45. pyexcel = "^0.7.0"
  46. seqeval = "^1.2.2"
  47. whitenoise = "^6.0.0"
  48. dj-database-url = "^0.5.0"
  49. pyexcel-xlsx = "^0.6.0"
  50. gunicorn = "^20.1.0"
  51. auto-labeling-pipeline = "^0.1.21"
  52. dj-rest-auth = {extras = ["with_social"], version = "^2.2.5"}
  53. django-drf-filepond = "^0.5.0"
  54. celery = "^5.2.3"
  55. django-celery-results = "2.4.0"
  56. SQLAlchemy = "^1.4.31"
  57. waitress = "^2.0.0"
  58. django-health-check = "^3.16.5"
  59. djangorestframework-xml = "^2.0.0"
  60. django-storages = {extras = ["google"], version = "^1.13.1"}
  61. django-cleanup = "^6.0.0"
  62. filetype = "^1.0.10"
  63. pandas = "^1.4.2"
  64. flower = "^1.2.0"
  65. django-allauth = "^0.52.0"
  66. [tool.poetry.dev-dependencies]
  67. model-mommy = "^2.0.0"
  68. coverage = "^6.3.1"
  69. flake8 = "^4.0.1"
  70. isort = {extras = ["pyproject"], version = "^5.10.1"}
  71. autopep8 = "^1.6.0"
  72. mypy = "^0.931"
  73. watchdog = "^2.1.6"
  74. black = "^22.1.0"
  75. pyproject-flake8 = "^0.0.1-alpha.2"
  76. types-chardet = "^4.0.3"
  77. types-requests = "^2.27.10"
  78. types-waitress = "^2.0.6"
  79. taskipy = "^1.10.1"
  80. unittest-xml-reporting = "^3.2.0"
  81. [build-system]
  82. requires = ["poetry-core>=1.0.0"]
  83. build-backend = "poetry.core.masonry.api"
  84. [tool.poetry-dynamic-versioning]
  85. enable = false
  86. [tool.black]
  87. line-length = 120
  88. target-version = ['py37', 'py38']
  89. include = '\.pyi?$'
  90. [tool.flake8]
  91. max-line-length = 120
  92. max-complexity = 18
  93. ignore = "E203,E266,W503,"
  94. filename = "*.py"
  95. [tool.mypy]
  96. python_version = "3.8"
  97. ignore_missing_imports = true
  98. show_error_codes = true
  99. exclude = [
  100. "migrations",
  101. "config",
  102. ]
  103. [tool.isort]
  104. profile = "black"
  105. include_trailing_comma = true
  106. multi_line_output = 3
  107. known_first_party = [
  108. "api",
  109. "auto_labeling",
  110. "config",
  111. "data_export",
  112. "data_import",
  113. "examples",
  114. "label_types",
  115. "labels",
  116. "metrics",
  117. "projects",
  118. "roles",
  119. "users",
  120. "social"
  121. ]
  122. known_local_folder = [
  123. "api",
  124. "auto_labeling",
  125. "config",
  126. "data_export",
  127. "data_import",
  128. "examples",
  129. "label_types",
  130. "labels",
  131. "metrics",
  132. "projects",
  133. "roles",
  134. "users",
  135. "social"
  136. ]
  137. [tool.taskipy.tasks]
  138. isort = "isort . -c --skip migrations"
  139. flake8 = "pflake8 --filename \"*.py\" --extend-exclude \"*/migrations\""
  140. black = "black --check ."
  141. mypy = "mypy --namespace-packages --explicit-package-bases ."
  142. wait_for_db = "python manage.py wait_for_db"
  143. test = "python manage.py test --pattern=\"test*.py\""
  144. migrate = "python manage.py migrate"
  145. collectstatic = "python manage.py collectstatic --noinput"