Skip to content
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

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

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 3mo ago
Stale
Adoption100+ stars on GitHub
177 ★ · Growing
DocsMissing or thin
Undocumented

GitHub Signals

Stars177
Forks25
Issues0
Updated3mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more