shotgun-sh 0.1.0.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of shotgun-sh might be problematic. Click here for more details.

Files changed (94) hide show
  1. shotgun_sh-0.1.0.dev1/.gitignore +209 -0
  2. shotgun_sh-0.1.0.dev1/LICENSE +21 -0
  3. shotgun_sh-0.1.0.dev1/PKG-INFO +318 -0
  4. shotgun_sh-0.1.0.dev1/README.md +267 -0
  5. shotgun_sh-0.1.0.dev1/pyproject.toml +150 -0
  6. shotgun_sh-0.1.0.dev1/src/shotgun/__init__.py +3 -0
  7. shotgun_sh-0.1.0.dev1/src/shotgun/agents/__init__.py +1 -0
  8. shotgun_sh-0.1.0.dev1/src/shotgun/agents/agent_manager.py +196 -0
  9. shotgun_sh-0.1.0.dev1/src/shotgun/agents/common.py +295 -0
  10. shotgun_sh-0.1.0.dev1/src/shotgun/agents/config/__init__.py +13 -0
  11. shotgun_sh-0.1.0.dev1/src/shotgun/agents/config/manager.py +215 -0
  12. shotgun_sh-0.1.0.dev1/src/shotgun/agents/config/models.py +120 -0
  13. shotgun_sh-0.1.0.dev1/src/shotgun/agents/config/provider.py +91 -0
  14. shotgun_sh-0.1.0.dev1/src/shotgun/agents/history/__init__.py +5 -0
  15. shotgun_sh-0.1.0.dev1/src/shotgun/agents/history/history_processors.py +213 -0
  16. shotgun_sh-0.1.0.dev1/src/shotgun/agents/models.py +94 -0
  17. shotgun_sh-0.1.0.dev1/src/shotgun/agents/plan.py +119 -0
  18. shotgun_sh-0.1.0.dev1/src/shotgun/agents/research.py +131 -0
  19. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tasks.py +122 -0
  20. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/__init__.py +26 -0
  21. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/codebase/__init__.py +28 -0
  22. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/codebase/codebase_shell.py +256 -0
  23. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/codebase/directory_lister.py +141 -0
  24. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/codebase/file_read.py +144 -0
  25. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/codebase/models.py +252 -0
  26. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/codebase/query_graph.py +67 -0
  27. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/codebase/retrieve_code.py +81 -0
  28. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/file_management.py +130 -0
  29. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/user_interaction.py +36 -0
  30. shotgun_sh-0.1.0.dev1/src/shotgun/agents/tools/web_search.py +69 -0
  31. shotgun_sh-0.1.0.dev1/src/shotgun/cli/__init__.py +1 -0
  32. shotgun_sh-0.1.0.dev1/src/shotgun/cli/codebase/__init__.py +5 -0
  33. shotgun_sh-0.1.0.dev1/src/shotgun/cli/codebase/commands.py +202 -0
  34. shotgun_sh-0.1.0.dev1/src/shotgun/cli/codebase/models.py +21 -0
  35. shotgun_sh-0.1.0.dev1/src/shotgun/cli/config.py +261 -0
  36. shotgun_sh-0.1.0.dev1/src/shotgun/cli/models.py +10 -0
  37. shotgun_sh-0.1.0.dev1/src/shotgun/cli/plan.py +65 -0
  38. shotgun_sh-0.1.0.dev1/src/shotgun/cli/research.py +78 -0
  39. shotgun_sh-0.1.0.dev1/src/shotgun/cli/tasks.py +71 -0
  40. shotgun_sh-0.1.0.dev1/src/shotgun/cli/utils.py +25 -0
  41. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/__init__.py +12 -0
  42. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/__init__.py +46 -0
  43. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/change_detector.py +358 -0
  44. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/code_retrieval.py +243 -0
  45. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/ingestor.py +1497 -0
  46. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/language_config.py +297 -0
  47. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/manager.py +1554 -0
  48. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/nl_query.py +327 -0
  49. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/core/parser_loader.py +152 -0
  50. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/models.py +107 -0
  51. shotgun_sh-0.1.0.dev1/src/shotgun/codebase/service.py +148 -0
  52. shotgun_sh-0.1.0.dev1/src/shotgun/logging_config.py +172 -0
  53. shotgun_sh-0.1.0.dev1/src/shotgun/main.py +73 -0
  54. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/__init__.py +5 -0
  55. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/__init__.py +1 -0
  56. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/partials/codebase_understanding.j2 +79 -0
  57. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/partials/common_agent_system_prompt.j2 +10 -0
  58. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/partials/interactive_mode.j2 +8 -0
  59. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/plan.j2 +57 -0
  60. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/research.j2 +38 -0
  61. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/state/codebase/codebase_graphs_available.j2 +13 -0
  62. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/state/system_state.j2 +1 -0
  63. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/agents/tasks.j2 +67 -0
  64. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/codebase/__init__.py +1 -0
  65. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/codebase/cypher_query_patterns.j2 +221 -0
  66. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/codebase/cypher_system.j2 +28 -0
  67. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/codebase/enhanced_query_context.j2 +10 -0
  68. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/codebase/partials/cypher_rules.j2 +24 -0
  69. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/codebase/partials/graph_schema.j2 +28 -0
  70. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/codebase/partials/temporal_context.j2 +21 -0
  71. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/history/__init__.py +1 -0
  72. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/history/summarization.j2 +46 -0
  73. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/loader.py +140 -0
  74. shotgun_sh-0.1.0.dev1/src/shotgun/prompts/user/research.j2 +5 -0
  75. shotgun_sh-0.1.0.dev1/src/shotgun/py.typed +0 -0
  76. shotgun_sh-0.1.0.dev1/src/shotgun/sdk/__init__.py +13 -0
  77. shotgun_sh-0.1.0.dev1/src/shotgun/sdk/codebase.py +195 -0
  78. shotgun_sh-0.1.0.dev1/src/shotgun/sdk/exceptions.py +17 -0
  79. shotgun_sh-0.1.0.dev1/src/shotgun/sdk/models.py +189 -0
  80. shotgun_sh-0.1.0.dev1/src/shotgun/sdk/services.py +23 -0
  81. shotgun_sh-0.1.0.dev1/src/shotgun/telemetry.py +68 -0
  82. shotgun_sh-0.1.0.dev1/src/shotgun/tui/__init__.py +0 -0
  83. shotgun_sh-0.1.0.dev1/src/shotgun/tui/app.py +49 -0
  84. shotgun_sh-0.1.0.dev1/src/shotgun/tui/components/prompt_input.py +69 -0
  85. shotgun_sh-0.1.0.dev1/src/shotgun/tui/components/spinner.py +86 -0
  86. shotgun_sh-0.1.0.dev1/src/shotgun/tui/components/splash.py +25 -0
  87. shotgun_sh-0.1.0.dev1/src/shotgun/tui/components/vertical_tail.py +28 -0
  88. shotgun_sh-0.1.0.dev1/src/shotgun/tui/screens/chat.py +415 -0
  89. shotgun_sh-0.1.0.dev1/src/shotgun/tui/screens/chat.tcss +28 -0
  90. shotgun_sh-0.1.0.dev1/src/shotgun/tui/screens/provider_config.py +221 -0
  91. shotgun_sh-0.1.0.dev1/src/shotgun/tui/screens/splash.py +31 -0
  92. shotgun_sh-0.1.0.dev1/src/shotgun/tui/styles.tcss +10 -0
  93. shotgun_sh-0.1.0.dev1/src/shotgun/utils/__init__.py +5 -0
  94. shotgun_sh-0.1.0.dev1/src/shotgun/utils/file_system_utils.py +31 -0
@@ -0,0 +1,209 @@
1
+ # Temp directory
2
+ tmp/
3
+
4
+ # Playground
5
+ playground/
6
+
7
+ # Output directory
8
+ .shotgun/
9
+
10
+ # Claude code
11
+ ./claude/.claude/settings.local.json
12
+
13
+ .DS_Store
14
+
15
+ # Created by https://www.toptal.com/developers/gitignore/api/python,visualstudiocode
16
+ # Edit at https://www.toptal.com/developers/gitignore?templates=python,visualstudiocode
17
+
18
+ ### Python ###
19
+ # Byte-compiled / optimized / DLL files
20
+ __pycache__/
21
+ *.py[cod]
22
+ *$py.class
23
+
24
+ # C extensions
25
+ *.so
26
+
27
+ # Distribution / packaging
28
+ .Python
29
+ build/
30
+ develop-eggs/
31
+ dist/
32
+ downloads/
33
+ eggs/
34
+ .eggs/
35
+ lib/
36
+ lib64/
37
+ parts/
38
+ sdist/
39
+ var/
40
+ wheels/
41
+ share/python-wheels/
42
+ *.egg-info/
43
+ .installed.cfg
44
+ *.egg
45
+ MANIFEST
46
+
47
+ # PyInstaller
48
+ # Usually these files are written by a python script from a template
49
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
50
+ *.manifest
51
+ *.spec
52
+
53
+ # Installer logs
54
+ pip-log.txt
55
+ pip-delete-this-directory.txt
56
+
57
+ # Unit test / coverage reports
58
+ htmlcov/
59
+ .tox/
60
+ .nox/
61
+ .coverage
62
+ .coverage.*
63
+ .cache
64
+ nosetests.xml
65
+ coverage.xml
66
+ *.cover
67
+ *.py,cover
68
+ .hypothesis/
69
+ .pytest_cache/
70
+ cover/
71
+
72
+ # Translations
73
+ *.mo
74
+ *.pot
75
+
76
+ # Django stuff:
77
+ *.log
78
+ local_settings.py
79
+ db.sqlite3
80
+ db.sqlite3-journal
81
+
82
+ # Flask stuff:
83
+ instance/
84
+ .webassets-cache
85
+
86
+ # Scrapy stuff:
87
+ .scrapy
88
+
89
+ # Sphinx documentation
90
+ docs/_build/
91
+
92
+ # PyBuilder
93
+ .pybuilder/
94
+ target/
95
+
96
+ # Jupyter Notebook
97
+ .ipynb_checkpoints
98
+
99
+ # IPython
100
+ profile_default/
101
+ ipython_config.py
102
+
103
+ # pyenv
104
+ # For a library or package, you might want to ignore these files since the code is
105
+ # intended to run in multiple environments; otherwise, check them in:
106
+ # .python-version
107
+
108
+ # pipenv
109
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
110
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
111
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
112
+ # install all needed dependencies.
113
+ #Pipfile.lock
114
+
115
+ # poetry
116
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
117
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
118
+ # commonly ignored for libraries.
119
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
120
+ #poetry.lock
121
+
122
+ # pdm
123
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
124
+ #pdm.lock
125
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
126
+ # in version control.
127
+ # https://pdm.fming.dev/#use-with-ide
128
+ .pdm.toml
129
+
130
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
131
+ __pypackages__/
132
+
133
+ # Celery stuff
134
+ celerybeat-schedule
135
+ celerybeat.pid
136
+
137
+ # SageMath parsed files
138
+ *.sage.py
139
+
140
+ # Environments
141
+ .env
142
+ .venv
143
+ env/
144
+ venv/
145
+ ENV/
146
+ env.bak/
147
+ venv.bak/
148
+
149
+ # Spyder project settings
150
+ .spyderproject
151
+ .spyproject
152
+
153
+ # Rope project settings
154
+ .ropeproject
155
+
156
+ # mkdocs documentation
157
+ /site
158
+
159
+ # mypy
160
+ .mypy_cache/
161
+ .dmypy.json
162
+ dmypy.json
163
+
164
+ # Pyre type checker
165
+ .pyre/
166
+
167
+ # pytype static type analyzer
168
+ .pytype/
169
+
170
+ # Cython debug symbols
171
+ cython_debug/
172
+
173
+ # PyCharm
174
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
175
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
176
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
177
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
178
+ #.idea/
179
+
180
+ ### Python Patch ###
181
+ # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
182
+ poetry.toml
183
+
184
+ # ruff
185
+ .ruff_cache/
186
+
187
+ # LSP config files
188
+ pyrightconfig.json
189
+
190
+ ### VisualStudioCode ###
191
+ .vscode/*
192
+ !.vscode/settings.json
193
+ !.vscode/tasks.json
194
+ !.vscode/launch.json
195
+ !.vscode/extensions.json
196
+ !.vscode/*.code-snippets
197
+
198
+ # Local History for Visual Studio Code
199
+ .history/
200
+
201
+ # Built Visual Studio Code Extensions
202
+ *.vsix
203
+
204
+ ### VisualStudioCode Patch ###
205
+ # Ignore all local history of files
206
+ .history
207
+ .ionide
208
+
209
+ # End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Proofs.io
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,318 @@
1
+ Metadata-Version: 2.4
2
+ Name: shotgun-sh
3
+ Version: 0.1.0.dev1
4
+ Summary: AI-powered research, planning, and task management CLI tool
5
+ Project-URL: Homepage, https://github.com/shotgun-sh/shotgun
6
+ Project-URL: Repository, https://github.com/shotgun-sh/shotgun
7
+ Project-URL: Issues, https://github.com/shotgun-sh/shotgun/issues
8
+ Project-URL: Discord, https://discord.gg/5RmY6J2N7s
9
+ Author-email: "Proofs.io" <hello@proofs.io>
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: agent,ai,cli,llm,planning,productivity,pydantic-ai,research,task-management
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Classifier: Topic :: Utilities
24
+ Requires-Python: >=3.10
25
+ Requires-Dist: httpx>=0.27.0
26
+ Requires-Dist: jinja2>=3.1.0
27
+ Requires-Dist: kuzu>=0.7.0
28
+ Requires-Dist: openinference-instrumentation-pydantic-ai
29
+ Requires-Dist: opentelemetry-api
30
+ Requires-Dist: opentelemetry-exporter-otlp
31
+ Requires-Dist: opentelemetry-sdk
32
+ Requires-Dist: pydantic-ai>=0.0.14
33
+ Requires-Dist: rich>=13.0.0
34
+ Requires-Dist: textual-dev>=1.7.0
35
+ Requires-Dist: textual>=6.1.0
36
+ Requires-Dist: tree-sitter-go>=0.23.0
37
+ Requires-Dist: tree-sitter-javascript>=0.23.0
38
+ Requires-Dist: tree-sitter-languages>=1.10.0
39
+ Requires-Dist: tree-sitter-python>=0.23.0
40
+ Requires-Dist: tree-sitter-rust>=0.23.0
41
+ Requires-Dist: tree-sitter-typescript>=0.23.0
42
+ Requires-Dist: tree-sitter>=0.21.0
43
+ Requires-Dist: typer>=0.12.0
44
+ Requires-Dist: watchdog>=4.0.0
45
+ Provides-Extra: dev
46
+ Requires-Dist: commitizen>=3.13.0; extra == 'dev'
47
+ Requires-Dist: lefthook>=1.12.0; extra == 'dev'
48
+ Requires-Dist: mypy>=1.11.0; extra == 'dev'
49
+ Requires-Dist: ruff>=0.6.0; extra == 'dev'
50
+ Description-Content-Type: text/markdown
51
+
52
+ # Shotgun
53
+
54
+ A Python CLI tool for research, planning, and task management powered by AI agents.
55
+
56
+ ## Features
57
+
58
+ - **Research**: Perform research with agentic loops
59
+ - **Planning**: Generate structured plans for achieving goals
60
+ - **Tasks**: Generate prioritized task lists with agentic approaches
61
+
62
+ ## Installation
63
+
64
+ ### From PyPI (Recommended)
65
+
66
+ ```bash
67
+ pip install shotgun-sh
68
+ ```
69
+
70
+ ### From Source
71
+
72
+ ```bash
73
+ git clone https://github.com/shotgun-sh/shotgun.git
74
+ cd shotgun
75
+ uv sync --all-extras
76
+ ```
77
+
78
+ After installation from source, you can use either method:
79
+
80
+ **Method 1: Direct command (after uv sync)**
81
+ ```bash
82
+ shotgun --help
83
+ ```
84
+
85
+ **Method 2: Via uv run**
86
+ ```bash
87
+ uv run shotgun --help
88
+ ```
89
+
90
+ If installed from PyPI, simply use:
91
+ ```bash
92
+ shotgun --help
93
+ ```
94
+
95
+ ### Virtual Environment Setup (Optional)
96
+
97
+ If you prefer using a local virtual environment:
98
+
99
+ ```bash
100
+ uv venv
101
+ source .venv/bin/activate # On Windows: .venv\Scripts\activate
102
+ uv sync --all-extras
103
+ shotgun --help
104
+ ```
105
+
106
+ ## Usage
107
+
108
+ ### Using Direct Commands (after uv sync)
109
+
110
+ ```bash
111
+ # Research a topic
112
+ shotgun research "What is quantum computing?"
113
+
114
+ # Generate a plan
115
+ shotgun plan "Build a web application"
116
+ shotgun plan "build me a house"
117
+
118
+ # Generate tasks for a project
119
+ shotgun tasks "Create a machine learning model"
120
+ ```
121
+
122
+ ### Using uv run
123
+
124
+ ```bash
125
+ # Research a topic
126
+ uv run shotgun research "What is quantum computing?"
127
+
128
+ # Generate a plan
129
+ uv run shotgun plan "Build a web application"
130
+
131
+ # Generate tasks for a project
132
+ uv run shotgun tasks "Create a machine learning model"
133
+ ```
134
+
135
+ ## Development Setup
136
+
137
+ ### Requirements
138
+
139
+ - **Python 3.10+** (3.13 recommended)
140
+ - **uv** - Fast Python package installer and resolver
141
+ - **actionlint** (optional) - For GitHub Actions workflow validation
142
+
143
+ ### Quick Start
144
+
145
+ 1. **Clone and setup**:
146
+ ```bash
147
+ git clone https://github.com/shotgun-sh/shotgun.git
148
+ cd shotgun
149
+ ```
150
+
151
+ 2. **Install uv** (if not already installed):
152
+ ```bash
153
+ # macOS/Linux
154
+ curl -LsSf https://astral.sh/uv/install.sh | sh
155
+
156
+ # Or via brew
157
+ brew install uv
158
+ ```
159
+
160
+ 3. **Install dependencies**:
161
+ ```bash
162
+ uv sync --all-extras
163
+ ```
164
+
165
+ 4. **Install git hooks**:
166
+ ```bash
167
+ uv run lefthook install
168
+ ```
169
+
170
+ 5. **Verify setup**:
171
+ ```bash
172
+ uv run shotgun --version
173
+ ```
174
+
175
+ ### Development Commands
176
+
177
+ ```bash
178
+ # Run the CLI
179
+ uv run shotgun --help
180
+
181
+ # Run the TUI
182
+ uv run tui
183
+
184
+ # Run tests
185
+ uv run pytest
186
+
187
+ # Run tests with coverage
188
+ uv run pytest --cov=src --cov-report=term-missing --cov-report=html
189
+
190
+ # Run linting
191
+ uv run ruff check .
192
+
193
+ # Run formatting
194
+ uv run ruff format .
195
+
196
+ # Run type checking
197
+ uv run mypy src/
198
+
199
+ # Run all pre-commit hooks manually
200
+ uv run lefthook run pre-commit
201
+ ```
202
+
203
+ ### Code Coverage
204
+
205
+ To analyze test coverage and identify areas that need testing:
206
+
207
+ ```bash
208
+ # Run tests with coverage analysis
209
+ uv run pytest --cov=src --cov-report=term-missing --cov-report=html
210
+ ```
211
+
212
+ This will:
213
+ - Display coverage summary in the terminal
214
+ - Generate a detailed HTML coverage report
215
+
216
+ **Viewing the coverage report:**
217
+ Open `htmlcov/index.html` in your browser to see:
218
+ - Overall coverage percentage
219
+ - File-by-file coverage breakdown
220
+ - Line-by-line coverage highlighting
221
+ - Missing coverage areas
222
+
223
+ The coverage configuration is in `pyproject.toml` and will automatically run when you use `uv run pytest`.
224
+
225
+ ### Git Hooks (Lefthook)
226
+
227
+ This project uses [lefthook](https://github.com/evilmartians/lefthook) for git hooks. The hooks automatically run:
228
+
229
+ - **ruff** - Python linting with auto-fix
230
+ - **ruff-format** - Code formatting
231
+ - **mypy** - Type checking
232
+ - **commitizen** - Commit message validation
233
+ - **actionlint** - GitHub Actions workflow validation (if installed)
234
+
235
+ #### Installing actionlint (recommended)
236
+
237
+ ```bash
238
+ # macOS
239
+ brew install actionlint
240
+
241
+ # Linux/macOS (direct download)
242
+ curl -sSfL https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash | bash
243
+
244
+ # Go install
245
+ go install github.com/rhysd/actionlint/cmd/actionlint@latest
246
+ ```
247
+
248
+
249
+ ### Python Version Management
250
+
251
+ The project supports **Python 3.10+**. The `.python-version` file specifies Python 3.10 to ensure development against the minimum supported version.
252
+
253
+ If using **pyenv**:
254
+ ```bash
255
+ pyenv install 3.10.16 # or latest 3.10.x
256
+ ```
257
+
258
+ If using **uv** (recommended):
259
+ ```bash
260
+ uv python install 3.10
261
+ uv sync --python 3.10
262
+ ```
263
+
264
+ ### Commit Message Convention
265
+
266
+ This project enforces **Conventional Commits** specification. All commit messages must follow this format:
267
+
268
+ ```
269
+ <type>[optional scope]: <description>
270
+ ```
271
+
272
+ **Required commit types:**
273
+ - `feat`: New feature
274
+ - `fix`: Bug fix
275
+ - `docs`: Documentation changes
276
+ - `style`: Code formatting changes
277
+ - `refactor`: Code restructuring without feature changes
278
+ - `perf`: Performance improvements
279
+ - `test`: Adding or updating tests
280
+ - `build`: Build system changes
281
+ - `ci`: CI/CD changes
282
+ - `chore`: Maintenance tasks
283
+ - `revert`: Reverting previous commits
284
+
285
+ **Examples:**
286
+ ```bash
287
+ feat: add user authentication system
288
+ fix: resolve memory leak in data processing
289
+ docs: update API documentation
290
+ refactor: simplify user validation logic
291
+ ```
292
+
293
+ **For interactive commit creation:**
294
+ ```bash
295
+ uv run cz commit
296
+ ```
297
+
298
+ ### Contributing
299
+
300
+ 1. Fork the repository
301
+ 2. Create a feature branch: `git checkout -b feat/feature-name`
302
+ 3. Make your changes
303
+ 4. Run the pre-commit hooks: `uv run lefthook run pre-commit`
304
+ 5. Commit with conventional format: `git commit -m "feat: add new feature"`
305
+ 6. Push to your fork: `git push origin feat/feature-name`
306
+ 7. Create a Pull Request with conventional title format
307
+
308
+ ### CI/CD
309
+
310
+ GitHub Actions automatically:
311
+ - Runs on pull requests and pushes to main
312
+ - Tests with Python 3.10
313
+ - Validates code with ruff, ruff-format, and mypy
314
+ - Ensures all checks pass before merge
315
+
316
+ ## Support
317
+
318
+ Join our discord https://discord.gg/5RmY6J2N7s