Skip to content

Commit 6ccac57

Browse files
constkclaude
andauthored
chore: .gitignore, .editorconfig, .dockerignore (#5) (#31)
Port .gitignore from Teller (Python-template patterns with anchored /lib/, /dist/, /build/ so frontend subtrees aren't swallowed). Strip Teller-specific lines. Add .editorconfig (LF, UTF-8, 4-space Python, 2-space JS/TS/YAML/Markdown). Add .dockerignore excluding .git/, .github/, .claude/, tests/, docs/, eval/, node_modules/ from the build context. Closes #5 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d36870f commit 6ccac57

3 files changed

Lines changed: 134 additions & 52 deletions

File tree

.dockerignore

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Version control
2+
.git/
3+
.gitignore
4+
.gitattributes
5+
6+
# CI / repo policy (not needed inside the image)
7+
.github/
8+
9+
# Dev tooling
10+
.claude/
11+
.vscode/
12+
.idea/
13+
.editorconfig
14+
.pre-commit-config.yaml
15+
justfile
16+
17+
# Python build / cache artefacts
18+
__pycache__/
19+
*.py[cod]
20+
*.egg-info/
21+
.eggs/
22+
.mypy_cache/
23+
.pytest_cache/
24+
.ruff_cache/
25+
.coverage
26+
.coverage.*
27+
htmlcov/
28+
coverage.xml
29+
30+
# Virtualenvs
31+
.venv/
32+
venv/
33+
env/
34+
ENV/
35+
36+
# Node (built into the frontend stage; not needed in the python stage)
37+
node_modules/
38+
frontend/dist/
39+
frontend/.vite/
40+
41+
# Tests / docs / eval — not part of the runtime image
42+
tests/
43+
docs/
44+
eval/
45+
46+
# Local env files
47+
.env
48+
.envrc
49+
50+
# OS
51+
.DS_Store
52+
Thumbs.db

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
10+
[*.py]
11+
indent_size = 4
12+
13+
[*.{js,jsx,ts,tsx,json,jsonc,html,css,scss,svg,xml}]
14+
indent_size = 2
15+
16+
[*.{yml,yaml,toml}]
17+
indent_size = 2
18+
19+
[*.md]
20+
trim_trailing_whitespace = false
21+
indent_size = 2
22+
23+
[Makefile]
24+
indent_style = tab
25+
26+
[justfile]
27+
indent_style = space
28+
indent_size = 4

.gitignore

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Claude Code agent hooks
2+
.claude/settings.local.json
3+
.claude/bash-log.txt
4+
.claude/worktrees/
5+
6+
# Node / Frontend
7+
node_modules/
8+
frontend/dist/
9+
frontend/.vite/
10+
111
# Byte-compiled / optimized / DLL files
212
__pycache__/
313
*.py[codz]
@@ -7,28 +17,31 @@ __pycache__/
717
*.so
818

919
# Distribution / packaging
20+
# Anchored to repo root with leading `/` — these are Python build artefacts
21+
# that should never appear at the top level. Without anchoring, `lib/` matched
22+
# `frontend/src/lib/` too and silently ignored any new file under it.
1023
.Python
11-
build/
12-
develop-eggs/
13-
dist/
14-
downloads/
15-
eggs/
16-
.eggs/
17-
lib/
18-
lib64/
19-
parts/
20-
sdist/
21-
var/
22-
wheels/
23-
share/python-wheels/
24+
/build/
25+
/develop-eggs/
26+
/dist/
27+
/downloads/
28+
/eggs/
29+
/.eggs/
30+
/lib/
31+
/lib64/
32+
/parts/
33+
/sdist/
34+
/var/
35+
/wheels/
36+
/share/python-wheels/
2437
*.egg-info/
2538
.installed.cfg
2639
*.egg
2740
MANIFEST
2841

2942
# PyInstaller
30-
# Usually these files are written by a python script from a template
31-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
43+
# Usually these files are written by a python script from a template
44+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
3245
*.manifest
3346
*.spec
3447

@@ -92,34 +105,34 @@ ipython_config.py
92105
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93106
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94107
# install all needed dependencies.
95-
# Pipfile.lock
108+
#Pipfile.lock
96109

97110
# UV
98111
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99112
# This is especially recommended for binary packages to ensure reproducibility, and is more
100113
# commonly ignored for libraries.
101-
# uv.lock
114+
#uv.lock
102115

103116
# poetry
104117
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105118
# This is especially recommended for binary packages to ensure reproducibility, and is more
106119
# commonly ignored for libraries.
107120
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108-
# poetry.lock
109-
# poetry.toml
121+
#poetry.lock
122+
#poetry.toml
110123

111124
# pdm
112125
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113126
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114127
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115-
# pdm.lock
116-
# pdm.toml
128+
#pdm.lock
129+
#pdm.toml
117130
.pdm-python
118131
.pdm-build/
119132

120133
# pixi
121134
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122-
# pixi.lock
135+
#pixi.lock
123136
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124137
# in the .venv directory. It is recommended not to include this directory in version control.
125138
.pixi
@@ -131,19 +144,6 @@ __pypackages__/
131144
celerybeat-schedule
132145
celerybeat.pid
133146

134-
# Redis
135-
*.rdb
136-
*.aof
137-
*.pid
138-
139-
# RabbitMQ
140-
mnesia/
141-
rabbitmq/
142-
rabbitmq-data/
143-
144-
# ActiveMQ
145-
activemq-data/
146-
147147
# SageMath parsed files
148148
*.sage.py
149149

@@ -182,37 +182,39 @@ dmypy.json
182182
cython_debug/
183183

184184
# PyCharm
185-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187-
# and can be added to the global gitignore or merged into this file. For a more nuclear
188-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
189-
# .idea/
185+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187+
# and can be added to the global gitignore or merged into this file. For a more nuclear
188+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
189+
#.idea/
190190

191191
# Abstra
192-
# Abstra is an AI-powered process automation framework.
193-
# Ignore directories containing user credentials, local state, and settings.
194-
# Learn more at https://abstra.io/docs
192+
# Abstra is an AI-powered process automation framework.
193+
# Ignore directories containing user credentials, local state, and settings.
194+
# Learn more at https://abstra.io/docs
195195
.abstra/
196196

197197
# Visual Studio Code
198-
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199-
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200-
# and can be added to the global gitignore or merged into this file. However, if you prefer,
201-
# you could uncomment the following to ignore the entire vscode folder
198+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
201+
# you could uncomment the following to ignore the entire vscode folder
202202
# .vscode/
203-
# Temporary file for partial code execution
204-
tempCodeRunnerFile.py
205203

206204
# Ruff stuff:
207205
.ruff_cache/
208206

209207
# PyPI configuration file
210208
.pypirc
211209

210+
# Cursor
211+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
212+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
213+
# refer to https://docs.cursor.com/context/ignore-files
214+
.cursorignore
215+
.cursorindexingignore
216+
212217
# Marimo
213218
marimo/_static/
214219
marimo/_lsp/
215220
__marimo__/
216-
217-
# Streamlit
218-
.streamlit/secrets.toml

0 commit comments

Comments
 (0)