AI SummaryA Cursor IDE rules file that enforces Python coding standards (PEP 8, Black formatting, Google-style docstrings) for geohash module development. Useful for Python developers using Cursor who want consistent code style enforcement.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "pygeohash — Cursor Rules" prompt rules to my project. Repository: https://github.com/wdm0006/pygeohash Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Python module for interacting with geohashes
Tools
• Use Black for code formatting • Use Ruff for linting and static analysis • Use mypy for type checking • Use isort for import sorting
Code Style
• Follow PEP 8 style guide for Python code • Use 4 spaces for indentation (no tabs) • Maximum line length of 88 characters (Black default) • Use snake_case for variables, functions, and methods • Use CamelCase for classes • Use UPPER_CASE for constants • Add a blank line at the end of each file
Imports
• Group imports in the following order: • Standard library imports • Related third-party imports • Local application/library specific imports • Use absolute imports when possible • Avoid wildcard imports (from module import *) • Use import aliases for long module names
Documentation
• Document all public modules, classes, methods, and functions • Use docstrings that follow the Google style guide • Include type hints for function parameters and return values • Document parameters, return values, and exceptions raised
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts