Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
23
**MANDATORY REQUIREMENT**: Before every commit, you MUST run Black formatter to ensure code style compliance. CI/CD will fail if code is not properly formatted.
Sign in to like and favorite skills
MANDATORY REQUIREMENT: Before every commit, you MUST run Black formatter to ensure code style compliance. CI/CD will fail if code is not properly formatted.
# Lint Python code (from root) - RUN THESE BEFORE EVERY COMMIT black --check --diff ha-joplin-bridge/api_server.py flake8 ha-joplin-bridge/api_server.py --max-line-length=88 bandit -r ha-joplin-bridge/api_server.py # Validate config python -c "import yaml; yaml.safe_load(open('ha-joplin-bridge/config.yaml'))" # Build Docker image docker build -t ha-joplin-bridge ./ha-joplin-bridge
" for strings, never single quotes '# CORRECT - Double quotes, trailing comma excluded_headers = { "content-length", "transfer-encoding", "connection", "keep-alive", "server", } # WRONG - Single quotes, no trailing comma excluded_headers = { 'content-length', 'transfer-encoding', 'connection', 'keep-alive', 'server' } # CORRECT - Single line dict comprehension safe_headers = {k: v for k, v in resp.headers.items() if k.lower() not in excluded} # WRONG - Multi-line when not needed safe_headers = { k: v for k, v in resp.headers.items() if k.lower() not in excluded }