Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Python project coding standards and GitHub setup rules for Cursor

Cursor rules file that makes the assistant follow Python coding standards for a file organization tool: snake_case naming, 120-character lines, docstrings, pytest coverage, logging, security, and GitHub Flow with CI.

People use this for

  • python coding standards cursor rules
  • cursor rules python project
  • python github flow ci setup
  • write python code following snake_case and docstrings
  • set up pytest coverage and github pull request reviews for a python project
Name
python-project-coding-standards-and-github-setup-rules-for-curso
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/python-project-coding-standards-and-github-setup-rules-for-cursor-3wwj/export/mdc" -o .cursor/rules/python-project-coding-standards-and-github-setup-rules-for-curso.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download python-project-coding-standards-and-github-setup-rules-for-curso.mdc
Manual install

Save python-project-coding-standards-and-github-setup-rules-for-curso.mdc as .cursor/rules/python-project-coding-standards-and-github-setup-rules-for-curso.mdc for this project or ~/.cursor/rules/python-project-coding-standards-and-github-setup-rules-for-curso.mdc for every project, then start a new session.

Rule


description: "Cursor rules for Python development with GitHub setup integration." globs: */ alwaysApply: false

{ "general": { "coding_style": { "language": "Python", "use_strict": true, "indentation": "4 spaces", "max_line_length": 120, "comments": { "style": "# for single-line, ''' for multi-line", "require_comments": true } },

    "naming_conventions": {
        "variables": "snake_case",
        "functions": "snake_case",
        "classes": "PascalCase",
        "interfaces": "PascalCase",
        "files": "snake_case"
    },
    
    "error_handling": {
        "prefer_try_catch": true,
        "log_errors": true
    },
    
    "testing": {
        "require_tests": true,
        "test_coverage": "80%",
        "test_types": ["unit", "integration"]
    },
    
    "documentation": {
        "require_docs": true,
        "doc_tool": "docstrings",
        "style_guide": "Google Python Style Guide"
    },
    
    "security": {
        "require_https": true,
        "sanitize_inputs": true,
        "validate_inputs": true,
        "use_env_vars": true
    },
    
    "configuration_management": {
        "config_files": [".env"],
        "env_management": "python-dotenv",
        "secrets_management": "environment variables"
    },
    
    "code_review": {
        "require_reviews": true,
        "review_tool": "GitHub Pull Requests",
        "review_criteria": ["functionality", "code quality", "security"]
    },
    
    "version_control": {
        "system": "Git",
        "branching_strategy": "GitHub Flow",
        "commit_message_format": "Conventional Commits"
    },
    
    "logging": {
        "logging_tool": "Python logging module",
        "log_levels": ["debug", "info", "warn", "error"],
        "log_retention_policy": "7 days"
    },
    
    "monitoring": {
        "monitoring_tool": "Not specified",
        "metrics": ["file processing time", "classification accuracy", "error rate"]
    },
    
    "dependency_management": {
        "package_manager": "pip",
        "versioning_strategy": "Semantic Versioning"
    },
    
    "accessibility": {
        "standards": ["Not applicable"],
        "testing_tools": ["Not applicable"]
    },
    
    "internationalization": {
        "i18n_tool": "Not applicable",
        "supported_languages": ["English"],
        "default_language": "English"
    },
    
    "ci_cd": {
        "ci_tool": "GitHub Actions",
        "cd_tool": "Not specified",
        "pipeline_configuration": ".github/workflows/main.yml"
    },
    
    "code_formatting": {
        "formatter": "Black",
        "linting_tool": "Pylint",
        "rules": ["PEP 8", "project-specific rules"]
    },
    
    "architecture": {
        "patterns": ["Modular design"],
        "principles": ["Single Responsibility", "DRY"]
    }
},

"project_specific": {
    "use_framework": "None",
    "styling": "Not applicable",
    "testing_framework": "pytest",
    "build_tool": "setuptools",
    
    "deployment": {
        "environment": "Local machine",
        "automation": "Not specified",
        "strategy": "Manual deployment"
    },
    
    "performance": {
        "benchmarking_tool": "Not specified",
        "performance_goals": {
            "response_time": "< 5 seconds per file",
            "throughput": "Not specified",
            "error_rate": "< 1%"
        }
    }
},

"context": {
    "codebase_overview": "Python-based file organization tool using AI for content analysis and classification",
    "libraries": [
        "watchdog", "spacy", "PyPDF2", "python-docx", "pandas", "beautifulsoup4", 
        "transformers", "scikit-learn", "joblib", "python-dotenv", "torch", "pytest", 
        "shutil", "logging", "pytest-mock"
    ],
    
    "coding_practices": {
        "modularity": true,
        "DRY_principle": true,
        "performance_optimization": true
    }
},

"behavior": {
    "verbosity": {
        "level": 2,
        "range": [0, 3]
    },
    "handle_incomplete_tasks": "Provide partial solution and explain limitations",
    "ask_for_clarification": true,
    "communication_tone": "Professional and concise"
}

}

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.