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.

159 lines
3.6 KiB

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