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
# Download to your project root curl -o .cursorrules "https://raw.githubusercontent.com/wdm0006/pygeohash/master/.cursor/rules/python_standards.mdc"
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
Quality Score
Acceptable
73/100
Trust & Transparency
Open Source — MIT
Source code publicly auditable
Verified Open Source
Hosted on GitHub — publicly auditable
Actively Maintained
Last commit 2mo ago
175 stars — Growing Community
25 forks