forked from vndee/local-talking-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,9 @@ __pycache__/ | |
*.py[cod] | ||
*$py.class | ||
|
||
.mypy_cache/ | ||
.ruff_cache/ | ||
|
||
# C extensions | ||
*.so | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |