-
Notifications
You must be signed in to change notification settings - Fork 31
Add vTeam shared Claude Code configuration with hooks-based enforcement #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
2a40ce5
Add vTeam shared Claude Code configuration with hooks-based enforcement
jeremyeder 4ec37cb
Convert vTeam shared-configs to installable Python package
jeremyeder 1a5e2bb
Clean up documentation and remove obsolete directory structure
jeremyeder 248ec4c
Merge branch 'main' into feature/add-shared-configs
jeremyeder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| # Byte-compiled / optimized / DLL files | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
| # C extensions | ||
| *.so | ||
|
|
||
| # Distribution / packaging | ||
| .Python | ||
| build/ | ||
| develop-eggs/ | ||
| dist/ | ||
| downloads/ | ||
| eggs/ | ||
| .eggs/ | ||
| lib/ | ||
| lib64/ | ||
| parts/ | ||
| sdist/ | ||
| var/ | ||
| wheels/ | ||
| *.egg-info/ | ||
| .installed.cfg | ||
| *.egg | ||
| MANIFEST | ||
|
|
||
| # PyInstaller | ||
| *.manifest | ||
| *.spec | ||
|
|
||
| # Installer logs | ||
| pip-log.txt | ||
| pip-delete-this-directory.txt | ||
|
|
||
| # Unit test / coverage reports | ||
| htmlcov/ | ||
| .tox/ | ||
| .coverage | ||
| .coverage.* | ||
| .cache | ||
| nosetests.xml | ||
| coverage.xml | ||
| *.cover | ||
| .hypothesis/ | ||
| .pytest_cache/ | ||
|
|
||
| # Translations | ||
| *.mo | ||
| *.pot | ||
|
|
||
| # Django stuff: | ||
| *.log | ||
| local_settings.py | ||
| db.sqlite3 | ||
|
|
||
| # Flask stuff: | ||
| instance/ | ||
| .webassets-cache | ||
|
|
||
| # Scrapy stuff: | ||
| .scrapy | ||
|
|
||
| # Sphinx documentation | ||
| docs/_build/ | ||
|
|
||
| # PyBuilder | ||
| target/ | ||
|
|
||
| # Jupyter Notebook | ||
| .ipynb_checkpoints | ||
|
|
||
| # pyenv | ||
| .python-version | ||
|
|
||
| # celery beat schedule file | ||
| celerybeat-schedule | ||
|
|
||
| # SageMath parsed files | ||
| *.sage.py | ||
|
|
||
| # Environments | ||
| .env | ||
| .venv | ||
| env/ | ||
| venv/ | ||
| ENV/ | ||
| env.bak/ | ||
| venv.bak/ | ||
|
|
||
| # Spyder project settings | ||
| .spyderproject | ||
| .spyproject | ||
|
|
||
| # Rope project settings | ||
| .ropeproject | ||
|
|
||
| # mkdocs documentation | ||
| /site | ||
|
|
||
| # mypy | ||
| .mypy_cache/ | ||
| .dmypy.json | ||
| dmypy.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2025 Jeremy Eder | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "vteam-shared-configs" | ||
| version = "1.0.0" | ||
| description = "Shared Claude Code configuration for vTeam development standards" | ||
| readme = "README.md" | ||
| license = "MIT" | ||
| requires-python = ">=3.8" | ||
| authors = [ | ||
| {name = "Jeremy Eder", email = "jeremy@example.com"}, | ||
| ] | ||
| keywords = ["claude", "configuration", "development", "team", "standards"] | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "Topic :: Software Development :: Quality Assurance", | ||
| ] | ||
| dependencies = [ | ||
| "click>=8.0.0", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| dev = [ | ||
| "pytest>=6.0", | ||
| "black", | ||
| "isort", | ||
| "flake8", | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/jeremyeder/vTeam" | ||
| Repository = "https://github.com/jeremyeder/vTeam" | ||
| Issues = "https://github.com/jeremyeder/vTeam/issues" | ||
|
|
||
| [project.scripts] | ||
| vteam-config = "vteam_shared_configs.cli:main" | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
| include = [ | ||
| "/src", | ||
| "/README.md", | ||
| "/LICENSE", | ||
| ] | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
| packages = ["src/vteam_shared_configs"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| """vTeam Shared Claude Code Configuration Package. | ||
|
|
||
| Provides shared Claude Code configuration for team development standards. | ||
| """ | ||
|
|
||
| __version__ = "1.0.0" | ||
| __author__ = "Jeremy Eder" | ||
| __email__ = "jeremy@example.com" | ||
|
|
||
| from .installer import ConfigInstaller | ||
|
|
||
| __all__ = ["ConfigInstaller"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| """Command-line interface for vTeam shared configuration management.""" | ||
|
|
||
| import click | ||
| from .installer import ConfigInstaller | ||
|
|
||
|
|
||
| @click.group() | ||
| @click.version_option(version="1.0.0") | ||
| def main(): | ||
| """vTeam Shared Claude Code Configuration Manager. | ||
|
|
||
| Manage shared Claude Code configuration for team development standards. | ||
| """ | ||
| pass | ||
|
|
||
|
|
||
| @main.command() | ||
| @click.option('--force', is_flag=True, help='Force reinstallation even if already installed') | ||
| def install(force): | ||
| """Install vTeam shared Claude Code configuration. | ||
|
|
||
| Sets up symlinks for global configuration and project templates. | ||
| Automatically backs up existing configuration. | ||
| """ | ||
| installer = ConfigInstaller() | ||
|
|
||
| if installer.install(force_reinstall=force): | ||
| click.echo(click.style("β vTeam configuration installed successfully!", fg="green")) | ||
| installer.status() | ||
| else: | ||
| click.echo(click.style("β Installation failed", fg="red")) | ||
| exit(1) | ||
|
|
||
|
|
||
| @main.command() | ||
| def uninstall(): | ||
| """Uninstall vTeam shared Claude Code configuration. | ||
|
|
||
| Removes symlinks and restores backed up configuration if available. | ||
| """ | ||
| installer = ConfigInstaller() | ||
|
|
||
| if installer.uninstall(): | ||
| click.echo(click.style("β vTeam configuration uninstalled successfully!", fg="green")) | ||
| else: | ||
| click.echo(click.style("β Uninstallation failed", fg="red")) | ||
| exit(1) | ||
|
|
||
|
|
||
| @main.command() | ||
| def status(): | ||
| """Show current vTeam configuration status. | ||
|
|
||
| Displays whether configuration is active and properly linked. | ||
| """ | ||
| installer = ConfigInstaller() | ||
| installer.status() | ||
|
|
||
|
|
||
| @main.command() | ||
| def update(): | ||
| """Update to latest vTeam configuration. | ||
|
|
||
| Equivalent to reinstalling with --force flag. | ||
| """ | ||
| installer = ConfigInstaller() | ||
|
|
||
| if installer.install(force_reinstall=True): | ||
| click.echo(click.style("β vTeam configuration updated successfully!", fg="green")) | ||
| installer.status() | ||
| else: | ||
| click.echo(click.style("β Update failed", fg="red")) | ||
| exit(1) | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "hooks": { | ||
| "preToolUse": [ | ||
| { | ||
| "name": "enforce-vteam-config", | ||
| "description": "Ensure latest vTeam shared configuration is active before Git operations", | ||
| "match": { | ||
| "tool": "Bash", | ||
| "command": "git commit*" | ||
| }, | ||
| "command": "vteam-config install --force" | ||
| }, | ||
| { | ||
| "name": "enforce-vteam-config-push", | ||
| "description": "Ensure latest vTeam shared configuration is active before Git push", | ||
| "match": { | ||
| "tool": "Bash", | ||
| "command": "git push*" | ||
| }, | ||
| "command": "vteam-config install --force" | ||
| } | ||
| ], | ||
| "sessionStart": [ | ||
| { | ||
| "name": "vteam-welcome", | ||
| "description": "Display vTeam configuration status on session start", | ||
| "command": "vteam-config status" | ||
| } | ||
| ] | ||
| }, | ||
| "permissions": { | ||
| "allow": [ | ||
| "Bash(git:*)", | ||
| "Bash(npm:*)", | ||
| "Bash(python:*)", | ||
| "Bash(uv:*)", | ||
| "Bash(black:*)", | ||
| "Bash(isort:*)", | ||
| "Bash(flake8:*)", | ||
| "Bash(pytest:*)", | ||
| "Bash(shellcheck:*)", | ||
| "Bash(markdownlint:*)" | ||
| ] | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something like this might be workable.