Add dev requirements, pre-commit hooks and psf black config for #50

This commit is contained in:
davidmezzetti
2021-01-23 11:42:49 -05:00
parent 0c33995ecd
commit 178c7cdc0a
3 changed files with 21 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3
+2
View File
@@ -0,0 +1,2 @@
[tool.black]
line-length = 150
+9 -1
View File
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
DESCRIPTION = f.read()
setup(name="txtai",
version="2.0.0",
version="2.1.0",
author="NeuML",
description="AI-powered search engine",
long_description=DESCRIPTION,
@@ -39,6 +39,14 @@ setup(name="txtai",
"transformers>=4.1.1",
"uvicorn>=0.12.1"
],
extras_require={
"dev": [
"black",
"coverage",
"pre-commit",
"pylint"
]
},
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",