nopush 0.1.0__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.
Files changed (55) hide show
  1. nopush-0.1.0/.github/workflows/ci.yml +55 -0
  2. nopush-0.1.0/.github/workflows/release.yml +44 -0
  3. nopush-0.1.0/.gitignore +218 -0
  4. nopush-0.1.0/.pre-commit-config.yaml +17 -0
  5. nopush-0.1.0/CHANGELOG.md +32 -0
  6. nopush-0.1.0/CONTRIBUTING.md +110 -0
  7. nopush-0.1.0/LICENSE +21 -0
  8. nopush-0.1.0/PKG-INFO +88 -0
  9. nopush-0.1.0/README.md +49 -0
  10. nopush-0.1.0/files-des.md +85 -0
  11. nopush-0.1.0/pyproject.toml +134 -0
  12. nopush-0.1.0/src/nopush/__init__.py +6 -0
  13. nopush-0.1.0/src/nopush/__main__.py +8 -0
  14. nopush-0.1.0/src/nopush/cli/__init__.py +1 -0
  15. nopush-0.1.0/src/nopush/cli/app.py +55 -0
  16. nopush-0.1.0/src/nopush/cli/commands/__init__.py +1 -0
  17. nopush-0.1.0/src/nopush/cli/commands/init_cmd.py +107 -0
  18. nopush-0.1.0/src/nopush/cli/commands/review_cmd.py +173 -0
  19. nopush-0.1.0/src/nopush/cli/renderer.py +310 -0
  20. nopush-0.1.0/src/nopush/config/__init__.py +1 -0
  21. nopush-0.1.0/src/nopush/config/constants.py +49 -0
  22. nopush-0.1.0/src/nopush/config/manager.py +142 -0
  23. nopush-0.1.0/src/nopush/config/schema.py +81 -0
  24. nopush-0.1.0/src/nopush/git/__init__.py +26 -0
  25. nopush-0.1.0/src/nopush/git/diff_parser.py +415 -0
  26. nopush-0.1.0/src/nopush/git/models.py +91 -0
  27. nopush-0.1.0/src/nopush/github/__init__.py +1 -0
  28. nopush-0.1.0/src/nopush/github/commenter.py +45 -0
  29. nopush-0.1.0/src/nopush/prompts/__init__.py +23 -0
  30. nopush-0.1.0/src/nopush/prompts/builder.py +187 -0
  31. nopush-0.1.0/src/nopush/prompts/templates.py +108 -0
  32. nopush-0.1.0/src/nopush/providers/__init__.py +32 -0
  33. nopush-0.1.0/src/nopush/providers/anthropic.py +28 -0
  34. nopush-0.1.0/src/nopush/providers/base.py +72 -0
  35. nopush-0.1.0/src/nopush/providers/gemini.py +220 -0
  36. nopush-0.1.0/src/nopush/providers/openai.py +163 -0
  37. nopush-0.1.0/src/nopush/providers/registry.py +64 -0
  38. nopush-0.1.0/src/nopush/review/__init__.py +19 -0
  39. nopush-0.1.0/src/nopush/review/engine.py +131 -0
  40. nopush-0.1.0/src/nopush/review/models.py +51 -0
  41. nopush-0.1.0/tests/__init__.py +1 -0
  42. nopush-0.1.0/tests/conftest.py +125 -0
  43. nopush-0.1.0/tests/test_cli/__init__.py +1 -0
  44. nopush-0.1.0/tests/test_cli/test_commands.py +131 -0
  45. nopush-0.1.0/tests/test_cli/test_renderer.py +322 -0
  46. nopush-0.1.0/tests/test_config/__init__.py +1 -0
  47. nopush-0.1.0/tests/test_config/test_manager.py +38 -0
  48. nopush-0.1.0/tests/test_git/__init__.py +1 -0
  49. nopush-0.1.0/tests/test_git/test_diff_parser.py +521 -0
  50. nopush-0.1.0/tests/test_prompts/__init__.py +1 -0
  51. nopush-0.1.0/tests/test_prompts/test_builder.py +372 -0
  52. nopush-0.1.0/tests/test_providers/__init__.py +1 -0
  53. nopush-0.1.0/tests/test_providers/test_openai.py +599 -0
  54. nopush-0.1.0/tests/test_review/__init__.py +1 -0
  55. nopush-0.1.0/tests/test_review/test_engine.py +549 -0
@@ -0,0 +1,55 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ lint:
14
+ name: Lint & Format
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.12"
21
+ - name: Install dependencies
22
+ run: pip install -e ".[dev]"
23
+ - name: Ruff check
24
+ run: ruff check src/ tests/
25
+ - name: Ruff format check
26
+ run: ruff format --check src/ tests/
27
+
28
+ typecheck:
29
+ name: Type Check
30
+ runs-on: ubuntu-latest
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ - uses: actions/setup-python@v5
34
+ with:
35
+ python-version: "3.12"
36
+ - name: Install dependencies
37
+ run: pip install -e ".[dev]"
38
+ - name: Mypy
39
+ run: mypy src/nopush/
40
+
41
+ test:
42
+ name: Test (Python ${{ matrix.python-version }})
43
+ runs-on: ubuntu-latest
44
+ strategy:
45
+ matrix:
46
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
47
+ steps:
48
+ - uses: actions/checkout@v4
49
+ - uses: actions/setup-python@v5
50
+ with:
51
+ python-version: ${{ matrix.python-version }}
52
+ - name: Install dependencies
53
+ run: pip install -e ".[dev]"
54
+ - name: Run tests
55
+ run: pytest --cov=nopush --cov-report=term-missing
@@ -0,0 +1,44 @@
1
+ name: Release
2
+
3
+ # Trigger only on version tags (e.g. v0.1.0). Linting, type checking, and
4
+ # tests are handled by ci.yml, not here.
5
+ on:
6
+ push:
7
+ tags:
8
+ - "v*"
9
+
10
+ # Minimum permissions required for PyPI Trusted Publishing (OIDC).
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+
15
+ jobs:
16
+ build-and-publish:
17
+ name: Build and publish to PyPI
18
+ runs-on: ubuntu-latest
19
+ environment:
20
+ name: pypi
21
+ url: https://pypi.org/project/nopush/
22
+
23
+ steps:
24
+ # Check out the tagged commit.
25
+ - name: Check out repository
26
+ uses: actions/checkout@v4
27
+
28
+ # Set up the Python version used to build the package.
29
+ - name: Set up Python
30
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: "3.12"
33
+
34
+ # Install only the packaging tool needed to build sdist/wheel.
35
+ - name: Install build dependencies
36
+ run: python -m pip install --upgrade build
37
+
38
+ # Build the source distribution and wheel; fails the job on error.
39
+ - name: Build package
40
+ run: python -m build
41
+
42
+ # Publish to PyPI using Trusted Publishing (OIDC) — no API tokens needed.
43
+ - name: Publish to PyPI
44
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,218 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .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
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # 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.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
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
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # 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/
190
+
191
+ # 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
195
+ .abstra/
196
+
197
+ # 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
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
@@ -0,0 +1,17 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.8.6
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+
9
+ - repo: https://github.com/pre-commit/pre-commit-hooks
10
+ rev: v5.0.0
11
+ hooks:
12
+ - id: trailing-whitespace
13
+ - id: end-of-file-fixer
14
+ - id: check-yaml
15
+ - id: check-added-large-files
16
+ args: [--maxkb=500]
17
+ - id: check-merge-conflict
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - Project scaffolding with `src/` layout
13
+ - CLI with `nopush init` (interactive setup) and `nopush review` (full pipeline)
14
+ - Configuration system with layered resolution (CLI > env > project > user > defaults)
15
+ - Git diff parser for staged changes, refs, and file paths
16
+ - Prompt builder with review depth support (minimal / standard / thorough)
17
+ - Token-based chunking for large diffs
18
+ - LLM provider abstraction with OpenAI and Google Gemini implementations
19
+ - Anthropic provider stub for future implementation
20
+ - Provider registry with lazy imports and case-insensitive name resolution
21
+ - Review engine with fault-tolerant JSON response parsing
22
+ - Hallucinated file path validation (discards references to non-existent files)
23
+ - Rich-based terminal renderer with severity-coded panels and syntax-highlighted suggestions
24
+ - Review summary with issue counts by severity (🔴 critical, 🟡 warning, 🔵 suggestion, ⚪ nitpick)
25
+ - CLI flags: `--depth`, `--provider`, `--model`, `--max-files`
26
+ - Graceful error handling for auth failures, network issues, git errors, and empty diffs
27
+ - Spinner feedback during LLM API calls
28
+ - GitHub PR commenter stub (optional, for future implementation)
29
+ - Comprehensive test suite (177 tests) covering all modules
30
+ - CI pipeline (GitHub Actions) with lint, type check, and multi-Python tests
31
+ - Pre-commit hooks (ruff, file hygiene)
32
+ - CONTRIBUTING.md with development guidelines
@@ -0,0 +1,110 @@
1
+ # Contributing to NoPush
2
+
3
+ Thank you for your interest in contributing to NoPush! This guide will help you
4
+ get started.
5
+
6
+ ## Development Setup
7
+
8
+ 1. **Clone the repository:**
9
+
10
+ ```bash
11
+ git clone https://github.com/saransh-kaushik/nopush.git
12
+ cd nopush
13
+ ```
14
+
15
+ 2. **Create a virtual environment:**
16
+
17
+ ```bash
18
+ python -m venv .venv
19
+ source .venv/bin/activate # Linux/macOS
20
+ # .venv\Scripts\activate # Windows
21
+ ```
22
+
23
+ 3. **Install in development mode:**
24
+
25
+ ```bash
26
+ pip install -e ".[dev]"
27
+ ```
28
+
29
+ 4. **Install pre-commit hooks:**
30
+
31
+ ```bash
32
+ pre-commit install
33
+ ```
34
+
35
+ ## Running Tests
36
+
37
+ ```bash
38
+ # Run all tests
39
+ pytest
40
+
41
+ # Run with coverage
42
+ pytest --cov=nopush --cov-report=term-missing
43
+
44
+ # Run a specific test file
45
+ pytest tests/test_git/test_diff_parser.py
46
+
47
+ # Skip slow/integration tests
48
+ pytest -m "not slow and not integration"
49
+ ```
50
+
51
+ ## Code Quality
52
+
53
+ We use the following tools to maintain code quality:
54
+
55
+ - **[Ruff](https://docs.astral.sh/ruff/)** for linting and formatting
56
+ - **[Mypy](https://mypy-lang.org/)** for static type checking
57
+ - **[Pytest](https://docs.pytest.org/)** for testing
58
+
59
+ ```bash
60
+ # Lint
61
+ ruff check src/ tests/
62
+
63
+ # Format
64
+ ruff format src/ tests/
65
+
66
+ # Type check
67
+ mypy src/nopush/
68
+ ```
69
+
70
+ ## Code Style
71
+
72
+ - Use type annotations on all public functions and methods.
73
+ - Write docstrings for all public classes, methods, and functions (Google style).
74
+ - Keep functions focused — prefer small, single-purpose functions.
75
+ - Use `from __future__ import annotations` in every module.
76
+ - Prefer composition over inheritance.
77
+
78
+ ## Adding a New LLM Provider
79
+
80
+ 1. Create a new file in `src/nopush/providers/` (e.g. `my_provider.py`).
81
+ 2. Subclass `LLMProvider` and implement the `complete()` method.
82
+ 3. Register your provider in `src/nopush/providers/registry.py`.
83
+ 4. Add tests in `tests/test_providers/`.
84
+ 5. Update `src/nopush/config/constants.py` with the provider name.
85
+
86
+ ## Pull Request Guidelines
87
+
88
+ - **One feature per PR.** Keep changes focused and reviewable.
89
+ - **Write tests.** All new functionality should have corresponding tests.
90
+ - **Update documentation.** If your change affects the user-facing API or CLI,
91
+ update the README or relevant docs.
92
+ - **Follow conventional commits.** Use prefixes like `feat:`, `fix:`, `docs:`,
93
+ `test:`, `refactor:`, `chore:`.
94
+ - **Ensure CI passes.** All checks (lint, type, test) must be green.
95
+
96
+ ## Reporting Issues
97
+
98
+ When filing a bug report, please include:
99
+
100
+ - NoPush version (`nopush --version`)
101
+ - Python version (`python --version`)
102
+ - Operating system
103
+ - Steps to reproduce
104
+ - Expected vs actual behaviour
105
+ - Relevant error output or logs
106
+
107
+ ## License
108
+
109
+ By contributing, you agree that your contributions will be licensed under the
110
+ MIT License.
nopush-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Saransh Kaushik
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.
nopush-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: nopush
3
+ Version: 0.1.0
4
+ Summary: A local-first, AI-powered code review assistant.
5
+ Project-URL: Homepage, https://github.com/saransh-kaushik/nopush
6
+ Project-URL: Repository, https://github.com/saransh-kaushik/nopush
7
+ Project-URL: Issues, https://github.com/saransh-kaushik/nopush/issues
8
+ Project-URL: Changelog, https://github.com/saransh-kaushik/nopush/blob/main/CHANGELOG.md
9
+ Author: Saransh Kaushik
10
+ License: MIT
11
+ License-File: LICENSE
12
+ Keywords: ai,cli,code-review,developer-tools,git,llm
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: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Software Development :: Quality Assurance
24
+ Classifier: Topic :: Software Development :: Version Control :: Git
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.10
27
+ Requires-Dist: httpx>=0.27.0
28
+ Requires-Dist: pydantic>=2.0.0
29
+ Requires-Dist: pyyaml>=6.0.0
30
+ Requires-Dist: rich>=13.0.0
31
+ Requires-Dist: typer>=0.15.0
32
+ Provides-Extra: dev
33
+ Requires-Dist: mypy>=1.13.0; extra == 'dev'
34
+ Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
35
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
36
+ Requires-Dist: ruff>=0.8.0; extra == 'dev'
37
+ Requires-Dist: types-pyyaml>=6.0.0; extra == 'dev'
38
+ Description-Content-Type: text/markdown
39
+
40
+ # NoPush
41
+
42
+ NoPush is a local-first, AI-powered code review assistant and a lightweight alternative to CodeRabbit. It helps developers review staged changes, Git diffs, or pull request updates using their own API keys and preferred LLM provider.
43
+
44
+ ## Why NoPush?
45
+
46
+ NoPush is designed to make AI code review fast, private, and easy to use from the terminal. Instead of sending your workflow into a hosted platform, NoPush keeps the experience local and developer-friendly while still giving you high-quality review feedback.
47
+
48
+ ## Core Features
49
+
50
+ - **CLI-first workflow** for fast reviews from the terminal
51
+ - **Bring Your Own Key (BYOK)** support for OpenAI, Anthropic, Gemini, and more
52
+ - **Git diff parsing** for staged changes, diffs, or specific files
53
+ - **Prompt builder** that turns code changes into structured LLM input
54
+ - **Provider abstraction layer** for multiple AI models
55
+ - **Structured review output** with severity, file, line number, explanation, and suggestion
56
+ - **Clean terminal rendering** with readable, colorized feedback
57
+ - **Optional GitHub PR comments** for posting review results back to pull requests
58
+ - **Project configuration** through `nopush.yaml`
59
+ - **Python packaging** for easy installation with `pip`
60
+
61
+ ## Quick Start
62
+
63
+ ```bash
64
+ nopush init # Configure API key and model
65
+ nopush review # Review staged Git changes
66
+ ```
67
+
68
+ ## Configuration
69
+
70
+ NoPush uses a local configuration file, `nopush.yaml`, to store project preferences such as:
71
+
72
+ - Preferred model
73
+ - API provider
74
+ - Ignored files or directories
75
+ - Review depth
76
+ - Custom review settings
77
+
78
+ Example:
79
+
80
+ ```yaml
81
+ provider: openai
82
+ model: gpt-4.1
83
+ review_depth: standard
84
+ ignore:
85
+ - node_modules/
86
+ - dist/
87
+ - .git/
88
+ ```
nopush-0.1.0/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # NoPush
2
+
3
+ NoPush is a local-first, AI-powered code review assistant and a lightweight alternative to CodeRabbit. It helps developers review staged changes, Git diffs, or pull request updates using their own API keys and preferred LLM provider.
4
+
5
+ ## Why NoPush?
6
+
7
+ NoPush is designed to make AI code review fast, private, and easy to use from the terminal. Instead of sending your workflow into a hosted platform, NoPush keeps the experience local and developer-friendly while still giving you high-quality review feedback.
8
+
9
+ ## Core Features
10
+
11
+ - **CLI-first workflow** for fast reviews from the terminal
12
+ - **Bring Your Own Key (BYOK)** support for OpenAI, Anthropic, Gemini, and more
13
+ - **Git diff parsing** for staged changes, diffs, or specific files
14
+ - **Prompt builder** that turns code changes into structured LLM input
15
+ - **Provider abstraction layer** for multiple AI models
16
+ - **Structured review output** with severity, file, line number, explanation, and suggestion
17
+ - **Clean terminal rendering** with readable, colorized feedback
18
+ - **Optional GitHub PR comments** for posting review results back to pull requests
19
+ - **Project configuration** through `nopush.yaml`
20
+ - **Python packaging** for easy installation with `pip`
21
+
22
+ ## Quick Start
23
+
24
+ ```bash
25
+ nopush init # Configure API key and model
26
+ nopush review # Review staged Git changes
27
+ ```
28
+
29
+ ## Configuration
30
+
31
+ NoPush uses a local configuration file, `nopush.yaml`, to store project preferences such as:
32
+
33
+ - Preferred model
34
+ - API provider
35
+ - Ignored files or directories
36
+ - Review depth
37
+ - Custom review settings
38
+
39
+ Example:
40
+
41
+ ```yaml
42
+ provider: openai
43
+ model: gpt-4.1
44
+ review_depth: standard
45
+ ignore:
46
+ - node_modules/
47
+ - dist/
48
+ - .git/
49
+ ```