{"id":23735,"library":"flake8-junit-report","title":"flake8-junit-report","description":"Simple tool that converts flake8 output to JUnit XML format for integration with CI/CD systems like Jenkins. Version 2.1.0 is the latest; actively maintained with a pip install.","status":"active","version":"2.1.0","language":"python","source_language":"en","source_url":"https://github.com/initios/flake8-junit-report","tags":["flake8","junit","testing","CI"],"install":[{"cmd":"pip install flake8-junit-report","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Hyphen not valid in import; use underscore.","wrong":"from flake8-junit-report import ...","symbol":"Flake8JunitReport","correct":"from flake8_junit_report import Flake8JunitReport"}],"quickstart":{"code":"from flake8_junit_report import Flake8JunitReport\n\n# Example: parse flake8 output from file\nwith open('flake8_output.txt', 'r') as f:\n    report = Flake8JunitReport.from_flake8_output(f.read())\n\n# Write JUnit XML\nwith open('junit.xml', 'w') as f:\n    f.write(report.to_xml())","lang":"python","description":"Parse flake8 output and generate JUnit XML."},"warnings":[{"fix":"Use flake8 with default output format (e.g., flake8 > flake8_output.txt).","message":"Input must be flake8 plain text output, not JSON or other formats.","severity":"gotcha","affected_versions":"all"},{"fix":"Use import flake8_junit_report.","message":"Installing with hyphens in package name (e.g., flake8-junit-report) works, but imports use underscores.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Change import to 'from flake8_junit_report import ...'","cause":"Using hyphens in import statement instead of underscores.","error":"ModuleNotFoundError: No module named 'flake8-junit-report'"},{"fix":"Ensure flake8 output is plain text with lines like 'file.py:line:col: code message'.","cause":"Input file contains JSON or other unsupported format.","error":"ValueError: Input is not valid flake8 output"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}