{"filename":"python-github-setup-cursorrules-prompt-file.mdc","content":"---\ndescription: \"Cursor rules for Python development with GitHub setup integration.\"\nglobs: **/*\nalwaysApply: false\n---\n{\n    \"general\": {\n        \"coding_style\": {\n            \"language\": \"Python\",\n            \"use_strict\": true,\n            \"indentation\": \"4 spaces\",\n            \"max_line_length\": 120,\n            \"comments\": {\n                \"style\": \"# for single-line, ''' for multi-line\",\n                \"require_comments\": true\n            }\n        },\n        \n        \"naming_conventions\": {\n            \"variables\": \"snake_case\",\n            \"functions\": \"snake_case\",\n            \"classes\": \"PascalCase\",\n            \"interfaces\": \"PascalCase\",\n            \"files\": \"snake_case\"\n        },\n        \n        \"error_handling\": {\n            \"prefer_try_catch\": true,\n            \"log_errors\": true\n        },\n        \n        \"testing\": {\n            \"require_tests\": true,\n            \"test_coverage\": \"80%\",\n            \"test_types\": [\"unit\", \"integration\"]\n        },\n        \n        \"documentation\": {\n            \"require_docs\": true,\n            \"doc_tool\": \"docstrings\",\n            \"style_guide\": \"Google Python Style Guide\"\n        },\n        \n        \"security\": {\n            \"require_https\": true,\n            \"sanitize_inputs\": true,\n            \"validate_inputs\": true,\n            \"use_env_vars\": true\n        },\n        \n        \"configuration_management\": {\n            \"config_files\": [\".env\"],\n            \"env_management\": \"python-dotenv\",\n            \"secrets_management\": \"environment variables\"\n        },\n        \n        \"code_review\": {\n            \"require_reviews\": true,\n            \"review_tool\": \"GitHub Pull Requests\",\n            \"review_criteria\": [\"functionality\", \"code quality\", \"security\"]\n        },\n        \n        \"version_control\": {\n            \"system\": \"Git\",\n            \"branching_strategy\": \"GitHub Flow\",\n            \"commit_message_format\": \"Conventional Commits\"\n        },\n        \n        \"logging\": {\n            \"logging_tool\": \"Python logging module\",\n            \"log_levels\": [\"debug\", \"info\", \"warn\", \"error\"],\n            \"log_retention_policy\": \"7 days\"\n        },\n        \n        \"monitoring\": {\n            \"monitoring_tool\": \"Not specified\",\n            \"metrics\": [\"file processing time\", \"classification accuracy\", \"error rate\"]\n        },\n        \n        \"dependency_management\": {\n            \"package_manager\": \"pip\",\n            \"versioning_strategy\": \"Semantic Versioning\"\n        },\n        \n        \"accessibility\": {\n            \"standards\": [\"Not applicable\"],\n            \"testing_tools\": [\"Not applicable\"]\n        },\n        \n        \"internationalization\": {\n            \"i18n_tool\": \"Not applicable\",\n            \"supported_languages\": [\"English\"],\n            \"default_language\": \"English\"\n        },\n        \n        \"ci_cd\": {\n            \"ci_tool\": \"GitHub Actions\",\n            \"cd_tool\": \"Not specified\",\n            \"pipeline_configuration\": \".github/workflows/main.yml\"\n        },\n        \n        \"code_formatting\": {\n            \"formatter\": \"Black\",\n            \"linting_tool\": \"Pylint\",\n            \"rules\": [\"PEP 8\", \"project-specific rules\"]\n        },\n        \n        \"architecture\": {\n            \"patterns\": [\"Modular design\"],\n            \"principles\": [\"Single Responsibility\", \"DRY\"]\n        }\n    },\n    \n    \"project_specific\": {\n        \"use_framework\": \"None\",\n        \"styling\": \"Not applicable\",\n        \"testing_framework\": \"pytest\",\n        \"build_tool\": \"setuptools\",\n        \n        \"deployment\": {\n            \"environment\": \"Local machine\",\n            \"automation\": \"Not specified\",\n            \"strategy\": \"Manual deployment\"\n        },\n        \n        \"performance\": {\n            \"benchmarking_tool\": \"Not specified\",\n            \"performance_goals\": {\n                \"response_time\": \"< 5 seconds per file\",\n                \"throughput\": \"Not specified\",\n                \"error_rate\": \"< 1%\"\n            }\n        }\n    },\n    \n    \"context\": {\n        \"codebase_overview\": \"Python-based file organization tool using AI for content analysis and classification\",\n        \"libraries\": [\n            \"watchdog\", \"spacy\", \"PyPDF2\", \"python-docx\", \"pandas\", \"beautifulsoup4\", \n            \"transformers\", \"scikit-learn\", \"joblib\", \"python-dotenv\", \"torch\", \"pytest\", \n            \"shutil\", \"logging\", \"pytest-mock\"\n        ],\n        \n        \"coding_practices\": {\n            \"modularity\": true,\n            \"DRY_principle\": true,\n            \"performance_optimization\": true\n        }\n    },\n    \n    \"behavior\": {\n        \"verbosity\": {\n            \"level\": 2,\n            \"range\": [0, 3]\n        },\n        \"handle_incomplete_tasks\": \"Provide partial solution and explain limitations\",\n        \"ask_for_clarification\": true,\n        \"communication_tone\": \"Professional and concise\"\n    }\n}\n"}