Skip to content

Commit 74a142b

Browse files
chore: sync template files
1 parent dfb52cc commit 74a142b

File tree

5 files changed

+21
-76
lines changed

5 files changed

+21
-76
lines changed

.gitignore

Lines changed: 9 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
1-
# This file is part of the tschm/.config-templates repository
2-
# (https://github.com/tschm/.config-templates).
3-
#
4-
docs
5-
.DS_Store
6-
_pdoc
7-
_book
8-
_tests
9-
_marimushka
10-
11-
# temp file used by Junie
12-
.output.txt
13-
14-
# .env file for configuration, e.g. OpenBB
15-
.env
1+
### Python template
162

17-
quantstats.md
3+
/_tests
184

195
# Byte-compiled / optimized / DLL files
206
__pycache__/
21-
*.py[codz]
7+
*.py[cod]
228
*$py.class
239

2410
# C extensions
@@ -64,7 +50,7 @@ htmlcov/
6450
nosetests.xml
6551
coverage.xml
6652
*.cover
67-
*.py.cover
53+
*.py,cover
6854
.hypothesis/
6955
.pytest_cache/
7056
cover/
@@ -112,36 +98,23 @@ ipython_config.py
11298
# install all needed dependencies.
11399
#Pipfile.lock
114100

115-
# UV
116-
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
117-
# This is especially recommended for binary packages to ensure reproducibility, and is more
118-
# commonly ignored for libraries.
119-
#uv.lock
120-
121101
# poetry
122102
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
123103
# This is especially recommended for binary packages to ensure reproducibility, and is more
124104
# commonly ignored for libraries.
125105
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
126106
#poetry.lock
127-
#poetry.toml
128107

129108
# pdm
130109
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
131-
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
132-
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
133110
#pdm.lock
134-
#pdm.toml
111+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
112+
# in version control.
113+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
114+
.pdm.toml
135115
.pdm-python
136116
.pdm-build/
137117

138-
# pixi
139-
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
140-
#pixi.lock
141-
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
142-
# in the .venv directory. It is recommended not to include this directory in version control.
143-
.pixi
144-
145118
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
146119
__pypackages__/
147120

@@ -153,7 +126,7 @@ celerybeat.pid
153126
*.sage.py
154127

155128
# Environments
156-
.envrc
129+
.env
157130
.venv
158131
env/
159132
venv/
@@ -192,33 +165,3 @@ cython_debug/
192165
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
193166
.idea/
194167

195-
# Abstra
196-
# Abstra is an AI-powered process automation framework.
197-
# Ignore directories containing user credentials, local state, and settings.
198-
# Learn more at https://abstra.io/docs
199-
.abstra/
200-
201-
# Visual Studio Code
202-
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
203-
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
204-
# and can be added to the global gitignore or merged into this file. However, if you prefer,
205-
# you could uncomment the following to ignore the entire vscode folder
206-
.vscode/
207-
208-
# Ruff stuff:
209-
.ruff_cache/
210-
211-
# PyPI configuration file
212-
.pypirc
213-
214-
# Cursor
215-
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
216-
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
217-
# refer to https://docs.cursor.com/context/ignore-files
218-
.cursorignore
219-
.cursorindexingignore
220-
221-
# Marimo
222-
marimo/_static/
223-
marimo/_lsp/
224-
__marimo__/

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ RESET := \033[0m
99
.PHONY: build clean book check
1010

1111
install: ## install
12-
task build:install
12+
task build:install -s
1313

1414
clean: ## clean
15-
task cleanup:clean
15+
task cleanup:clean -s
1616

1717
test: install ## run all tests
18-
task docs:test
18+
task docs:test -s
1919

2020
book: test ## compile the companion book
21-
task docs:docs
22-
task docs:marimushka
23-
task docs:book
21+
task docs:docs -s
22+
task docs:marimushka -s
23+
task docs:book -s
2424

2525
check: install ## check the pre-commit hooks, the linting and deptry
26-
task quality:check
26+
task quality:check -s
2727

2828
help: ## Display this help message
2929
@printf "$(BOLD)Usage:$(RESET)\n"

Taskfile.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ env:
3030
LOG_SUCCESS: 'printf "${GREEN}[SUCCESS] %s${RESET}\n"'
3131
LOG_ERROR: 'printf "${RED}[ERROR] %s${RESET}\n"'
3232

33+
PATH: "{{.HOME}}/.local/bin:{{.PATH}}"
34+
3335
# Include task groups
3436
includes:
3537
build:

taskfiles/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ tasks:
77
- |
88
# install uv and uvx
99
curl -sSf https://astral.sh/uv/install.sh | sh > /dev/null 2>&1 || { echo "${RED}Installation failed!${RESET}" >&2; exit 1; }
10-
export PATH="$HOME/.local/bin:$PATH"
1110
1211
install:
1312
desc: Install all dependencies using uv
@@ -41,7 +40,7 @@ tasks:
4140
cmds:
4241
- |
4342
if [ -f "pyproject.toml" ]; then
44-
uvx hatch build
43+
uvx hatch build || { printf "${RED}[ERROR] Build failed${RESET}\n"; exit 1; }
4544
else
4645
printf "${YELLOW}[WARN] No pyproject.toml found, skipping build${RESET}\n"
4746
fi

taskfiles/quality.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ tasks:
2525
cmds:
2626
- |
2727
if [ -f "pyproject.toml" ]; then
28-
SOURCE_FOLDER="src/$(find src -mindepth 1 -maxdepth 1 -type d -not -path '*/\.*' | head -1 | sed 's|^src/||')"
28+
SOURCE_FOLDER="$(fd -td . src -d1 --exclude '.*' | head -1)" : "${SOURCE_FOLDER:=src}"
29+
# SOURCE_FOLDER="src/$(find src -mindepth 1 -maxdepth 1 -type d -not -path '*/\.*' | head -1 | sed 's|^src/||')"
2930
uvx deptry $SOURCE_FOLDER {{.OPTIONS}}
3031
else
3132
printf "${YELLOW}[WARN] No pyproject.toml found, skipping deptry${RESET}\n"

0 commit comments

Comments
 (0)