Skip to content

Commit

Permalink
Use pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dustalov committed Feb 3, 2024
1 parent 90d15c6 commit 200dfca
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 86 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
select = E,W,F
ignore = E122,E123,E127,E131,E203,E225,E226,E24,E275,E305,E306,E402,E722,E731,E741,F722,W503,W504,C9,N8
max-line-length = 200
91 changes: 91 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,94 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "crowd-kit"
description = "Computational Quality Control for Crowdsourcing"
keywords = ["crowdsourcing", "quality control", "answer aggregation"]
license = {text = "Apache 2.0"}
authors = [{name = "Toloka"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Typing :: Typed",
]
requires-python = ">= 3.8"
dependencies = [
"attrs",
"numpy",
"pandas >= 1.1.0",
"tqdm",
"scikit-learn",
"nltk",
"transformers",
]
dynamic = ["version"]

[project.readme]
file = "README.md"
content-type = "text/markdown"

[project.urls]
Homepage = "https://github.com/Toloka/crowd-kit"
"Bug Tracker" = "https://github.com/Toloka/crowd-kit/issues"
Documentation = "https://toloka.ai/en/docs/crowd-kit/"
"API Reference" = "https://toloka.ai/en/docs/crowd-kit/"
"Source Code" = "https://github.com/Toloka/crowd-kit"
"Release Notes" = "https://github.com/Toloka/crowd-kit/blob/main/CHANGELOG.md"

[project.optional-dependencies]
dev = [
"mypy",
"pytest",
"twine",
"flake8",
"black",
"isort",
"pre-commit",
"build",
"codecov",
"notebook",
"ipywidgets",
"stubmaker @ git+https://github.com/Toloka/stubmaker.git@main",
"pandas-stubs",
]
learning = [
"torch>=1.6.0",
"transformers>=4.0.0",
]

[tool.setuptools]
zip-safe = true
include-package-data = true

[tool.setuptools.packages.find]
include = ["crowdkit*"]
namespaces = false

[tool.setuptools.package-data]
"*" = ["py.typed"]

[tool.setuptools.dynamic]
version = {attr = "crowdkit.__version__"}

[tool.mypy]
ignore_missing_imports = true
plugins = ["numpy.typing.mypy_plugin"]
strict = true

[tool.isort]
profile = "black"
src_paths = ["crowdkit", "tests"]
86 changes: 0 additions & 86 deletions setup.cfg

This file was deleted.

0 comments on commit 200dfca

Please sign in to comment.