Skip to content

Commit

Permalink
Project init and config
Browse files Browse the repository at this point in the history
  • Loading branch information
vndee committed Mar 24, 2024
1 parent 057b4f9 commit bb00030
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ __pycache__/
*.py[cod]
*$py.class

.mypy_cache/
.ruff_cache/

# C extensions
*.so

Expand Down
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
additional_dependencies: [pydantic, types-requests]
exclude: tests
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.7
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
hooks:
- id: gitleaks
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
PHONY: hello

RED=\033[0;31m
GREEN=\033[0;32m
YELLOW=\033[0;33m
BLUE=\033[0;34m
MAGENTA=\033[0;35m
CYAN=\033[0;36m
RESET=\033[0m

hello:
@echo "${MAGENTA}Hello, $$(whoami)!${RESET}"
@echo "${GREEN}Current Time:${RESET}\t\t${YELLOW}$$(date)${RESET}"
@echo "${GREEN}Working Directory:${RESET}\t${YELLOW}$$(pwd)${RESET}"
@echo "${GREEN}Shell:${RESET}\t\t\t${YELLOW}$$(echo $$SHELL)${RESET}"
@echo "${GREEN}Terminal:${RESET}\t\t${YELLOW}$$(echo $$TERM)${RESET}"


env:
@echo "To activate the Poetry environment, run:"
@echo "source $$(poetry env info --path)/bin/activate"

lint:
@echo "Running linter..."
@source $$(poetry env info --path)/bin/activate && pre-commit run --all-files
@echo "Done."
Empty file added core/__init__.py
Empty file.
Empty file added interface/__init__.py
Empty file.
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tool.poetry]
name = "local-talking-llm"
version = "0.1.0"
description = ""
authors = ["Duy Huynh <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"


[tool.poetry.group.dev.dependencies]
pre-commit = "^3.6.2"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit bb00030

Please sign in to comment.