Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
python-codestyle - Skill - OpenSmartRoute
Skillv1.0.0
python-codestyle
=== applyTo: "**/*.py" === # Python Code Style Guide This document outlines the coding style and conventions for Python code in the Unity Package Wrapper project. It is designed to ensure consistency,
Instruction file imported from klumhru/package-wrappers-unity (.github/instructions/python-codestyle.instructions.md). Copyright stays with the author.
===
applyTo: "**/*.py"
Python Code Style Guide
This document outlines the coding style and conventions for Python code in the Unity Package Wrapper project. It is designed to ensure consistency, readability, and maintainability across the codebase.
General Guidelines
Use Python 3.10 or later
Use pre-commit hooks to enforce style checks before committing code
Use type hints for all function parameters and return values
Follow consistent naming conventions (snake_case for variables and functions, CamelCase for classes)
Use docstrings for all public functions and classes
Use f-strings for string formatting (Python 3.6+)
Keep line length to a maximum of 79 characters
Use spaces around operators and after commas
Use 4 spaces for indentation (no tabs)
Use flake8 for linting and black for formatting. Perform these checks before committing code.
Use mypy for type checking to ensure type safety
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/klumhru-package-wrappers-unity-python-codestyle-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "klumhru-package-wrappers-unity-python-codestyle-instructions",
"kind": "skill",
"name": "python-codestyle",
"description": "=== applyTo: \"**/*.py\" === # Python Code Style Guide This document outlines the coding style and conventions for Python code in the Unity Package Wrapper project. It is designed to ensure consistency, readability, and maintainability across the codebase.",
"publisher": "klumhru",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"=== applyTo: \"**/*.py\" === # Python Code Style Guide This document outlines the coding style and conventions for Python code in the Unity Package Wrapper project. It is designed to ensure consistency, readability, and maintainability across the codebase."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/klumhru/package-wrappers-unity",
"path": ".github/instructions/python-codestyle.instructions.md",
"ref": "3e616e87974ed9bc2c7edd0147d63490e5147b97",
"url": "https://github.com/klumhru/package-wrappers-unity/blob/3e616e87974ed9bc2c7edd0147d63490e5147b97/.github/instructions/python-codestyle.instructions.md",
"key": "klumhru/package-wrappers-unity/.github/instructions/python-codestyle.instructions.md"
}
},
"instructions": "===\napplyTo: \"**/*.py\"\n===\n# Python Code Style Guide\nThis document outlines the coding style and conventions for Python code in the Unity Package Wrapper project. It is designed to ensure consistency, readability, and maintainability across the codebase.\n\n## General Guidelines\n- Use Python 3.10 or later\n- Use pre-commit hooks to enforce style checks before committing code\n- Use type hints for all function parameters and return values\n- Follow consistent naming conventions (snake_case for variables and functions, CamelCase for classes)\n- Use docstrings for all public functions and classes\n- Use",
"cost": {
"context_tokens": 234
}
}
Fetch it by URL: GET /api/v1/registry/klumhru-package-wrappers-unity-python-codestyle-instructions/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.