refactor: cleanup unused dotfiles (#198)

docs-add-demo
Meng Zhang 2023-06-05 12:54:40 -07:00 committed by GitHub
parent e8a33312bb
commit fcf9b4345f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 3662 deletions

View File

@ -1,3 +1,3 @@
**/.git
**/target
**/node_modules
**/__pycache__

2
.gitignore vendored
View File

@ -1,3 +1 @@
__pycache__
supervisord.pid
/target

View File

@ -1,22 +0,0 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.2
hooks:
- id: autoflake
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black

View File

@ -1,24 +1,3 @@
POETRY_EXISTS := $(shell which poetry &> /dev/null)
PRE_COMMIT_EXISTS := $(shell poetry run which pre-commit &> /dev/null)
PRE_COMMIT_HOOK := .git/hooks/pre-commit
pre-commit: setup-development-environment
poetry run pre-commit
install-poetry:
ifndef POETRY_EXISTS
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.4.0 python3 -
endif
ifndef PRE_COMMIT_EXISTS
poetry run pip install $(shell poetry export --without-hashes --with dev | grep pre-commit | cut -d";" -f1)
endif
$(PRE_COMMIT_HOOK):
poetry run pre-commit install --install-hooks
setup-development-environment: install-poetry $(PRE_COMMIT_HOOK)
smoke:
k6 run tests/*.smoke.js

3584
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,32 +0,0 @@
[tool.poetry]
name = "tabby"
version = "0.1.0"
description = ""
authors = ["Meng Zhang <meng@tabbyml.com>"]
license = "Apache 2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
datasets = "^2.10.1"
transformers = "^4.27.1"
fastapi = "^0.95.0"
uvicorn = "^0.21.1"
tritonclient = {extras = ["all"], version = "^2.31.0"}
streamlit = "^1.20.0"
loguru = "^0.6.0"
gitup = "^0.5.1"
toml = "^0.10.2"
gitpython = "^3.1.31"
peft = {git = "https://github.com/huggingface/peft.git", rev = "v0.2.0"}
duckdb = "^0.7.1"
torch = "^2.0.0"
bitsandbytes = "^0.37.2"
meilisearch = "^0.26.0"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.1.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"