Prompt

pygeohash — Cursor Rules

by wdm0006

AI Summary

A 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

C

Acceptable

73/100

Standard Compliance72
Documentation Quality65
Usefulness58
Maintenance Signal80
Community Signal100
Scored Yesterday

GitHub Signals

Stars175
Forks25
Issues0
Updated2mo ago
View on GitHub

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

My Fox Den

Community Rating

Works With

Cursor