Skip to content

Commit 0aa7de4

Browse files
committed
chore: update project configuration for clipboard integration - Add pyperclip dependency to pyproject.toml - Update poetry.lock with new dependency - Update .llmignore with additional patterns - Update CI workflow if needed for clipboard functionality
1 parent f4bdf65 commit 0aa7de4

4 files changed

Lines changed: 309 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ jobs:
8282
poetry run ruff check . --output-format=github
8383
poetry run ruff format . --check --diff
8484
85-
# TODO: Temporarily disabled due to module path conflicts
86-
# - name: Run Mypy (Static Type Checking)
87-
# # Runs Mypy to perform static type checking.
88-
# # Uses the configuration from pyproject.toml.
89-
# run: |
90-
# poetry run mypy src --config-file pyproject.toml
85+
- name: Run Mypy (Static Type Checking)
86+
# Runs Mypy to perform static type checking.
87+
# Uses the configuration from pyproject.toml.
88+
# Run from src directory to avoid module path conflicts
89+
run: |
90+
cd src && poetry run mypy contextcraft
9191
9292
- name: Run Bandit (Security Linting)
9393
# Runs Bandit to check for common security vulnerabilities.

.llmignore

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,208 @@
11
# .llmignore
22

3+
# Byte-compiled / optimized / DLL files
4+
__pycache__/
5+
*.py[codz]
6+
*$py.class
7+
8+
# C extensions
9+
*.so
10+
11+
# Distribution / packaging
12+
.Python
13+
build/
14+
develop-eggs/
15+
dist/
16+
downloads/
17+
eggs/
18+
.eggs/
19+
lib/
20+
lib64/
21+
parts/
22+
sdist/
23+
var/
24+
wheels/
25+
share/python-wheels/
26+
*.egg-info/
27+
.installed.cfg
28+
*.egg
29+
MANIFEST
30+
31+
# PyInstaller
32+
# Usually these files are written by a python script from a template
33+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34+
*.manifest
35+
*.spec
36+
37+
# Installer logs
38+
pip-log.txt
39+
pip-delete-this-directory.txt
40+
41+
# Unit test / coverage reports
42+
htmlcov/
43+
.tox/
44+
.nox/
45+
.coverage
46+
.coverage.*
47+
.cache
48+
nosetests.xml
49+
coverage.xml
50+
*.cover
51+
*.py,cover
52+
.hypothesis/
53+
.pytest_cache/
54+
cover/
55+
56+
# Translations
57+
*.mo
58+
*.pot
59+
60+
# Django stuff:
61+
*.log
62+
local_settings.py
63+
db.sqlite3
64+
db.sqlite3-journal
65+
66+
# Flask stuff:
67+
instance/
68+
.webassets-cache
69+
70+
# Scrapy stuff:
71+
.scrapy
72+
73+
# Sphinx documentation
74+
docs/_build/
75+
76+
# PyBuilder
77+
.pybuilder/
78+
target/
79+
80+
# Jupyter Notebook
81+
.ipynb_checkpoints
82+
83+
# IPython
84+
profile_default/
85+
ipython_config.py
86+
87+
# pyenv
88+
# For a library or package, you might want to ignore these files since the code is
89+
# intended to run in multiple environments; otherwise, check them in:
90+
# .python-version
91+
92+
# pipenv
93+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
95+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
96+
# install all needed dependencies.
97+
#Pipfile.lock
98+
99+
# UV
100+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
101+
# This is especially recommended for binary packages to ensure reproducibility, and is more
102+
# commonly ignored for libraries.
103+
#uv.lock
104+
105+
# poetry
106+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
107+
# This is especially recommended for binary packages to ensure reproducibility, and is more
108+
# commonly ignored for libraries.
109+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
110+
#poetry.lock
111+
#poetry.toml
112+
113+
# pdm
114+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
115+
#pdm.lock
116+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
117+
# in version control.
118+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
119+
.pdm.toml
120+
.pdm-python
121+
.pdm-build/
122+
123+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
124+
__pypackages__/
125+
126+
# Celery stuff
127+
celerybeat-schedule
128+
celerybeat.pid
129+
130+
# SageMath parsed files
131+
*.sage.py
132+
133+
# Environments
134+
.env
135+
.envrc
136+
.venv
137+
env/
138+
venv/
139+
ENV/
140+
env.bak/
141+
venv.bak/
142+
143+
# Spyder project settings
144+
.spyderproject
145+
.spyproject
146+
147+
# Rope project settings
148+
.ropeproject
149+
150+
# mkdocs documentation
151+
/site
152+
153+
# mypy
154+
.mypy_cache/
155+
.dmypy.json
156+
dmypy.json
157+
158+
# Pyre type checker
159+
.pyre/
160+
161+
# pytype static type analyzer
162+
.pytype/
163+
164+
# Cython debug symbols
165+
cython_debug/
166+
167+
# PyCharm
168+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
169+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
170+
# and can be added to the global gitignore or merged into this file. For a more nuclear
171+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
172+
#.idea/
173+
174+
# Abstra
175+
# Abstra is an AI-powered process automation framework.
176+
# Ignore directories containing user credentials, local state, and settings.
177+
# Learn more at https://abstra.io/docs
178+
.abstra/
179+
180+
# Visual Studio Code
181+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
182+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
183+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
184+
# you could uncomment the following to ignore the entire vscode folder
185+
# .vscode/
186+
187+
# Ruff stuff:
188+
.ruff_cache/
189+
190+
# PyPI configuration file
191+
.pypirc
192+
193+
# Cursor
194+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
195+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
196+
# refer to https://docs.cursor.com/context/ignore-files
197+
.cursorignore
198+
.cursorindexingignore
199+
200+
# Marimo
201+
marimo/_static/
202+
marimo/_lsp/
203+
__marimo__/
204+
205+
3206
# Comments are ignored
4207
*.log
5208
build/
@@ -25,6 +228,12 @@ secrets/
25228
.env.development.local
26229
.env.test.local
27230
.env.production.local
231+
.DS_store
232+
SECURITY.md
233+
LICENSE
234+
CONTRIBUTING.md
235+
CODE_OF_CONDUCT.md
236+
28237

29238
coverage.xml
30239
.coverage

poetry.lock

Lines changed: 81 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ typer = "^0.9.0"
1414
rich = "^13.0.0"
1515
pathspec = "^0.12.1"
1616
toml = "^0.10.2"
17+
pyperclip = "^1.9.0"
1718

1819
[tool.poetry.group.dev.dependencies]
1920
ruff = "^0.1.0"
20-
# mypy = "^1.0.0" # TODO: Temporarily disabled due to module path conflicts
21+
mypy = "^1.0.0"
2122
pytest = "^7.0.0"
2223
bandit = "^1.7.0"
2324
pytest-cov = "^4.0.0"
@@ -54,15 +55,17 @@ ignore = [
5455
"tests/*" = ["S101", "S603", "S607"]
5556
"src/contextcraft/tools/git_provider.py" = ["S603", "S607"]
5657

57-
# [tool.mypy] # TODO: Temporarily disabled due to module path conflicts
58-
# python_version = "3.9"
59-
# warn_return_any = true
60-
# warn_unused_configs = true
61-
# ignore_missing_imports = true
62-
# strict = true
63-
# exclude = ["tests/"]
64-
# mypy_path = ["src"]
65-
# packages = ["src.contextcraft"]
58+
[tool.mypy]
59+
python_version = "3.9"
60+
warn_return_any = true
61+
warn_unused_configs = true
62+
ignore_missing_imports = true
63+
strict = true
64+
exclude = ["tests/"]
65+
# Fix for module path conflicts: Run mypy from src/ directory
66+
# This avoids conflicts between installed package and source code
67+
check_untyped_defs = true
68+
# Configuration works when run as: cd src && mypy contextcraft
6669

6770
# Configuration for Pytest (optional, many things are auto-discovered)
6871
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)