robotframework-robocop
Static code analysis tool (linter) and code formatter for Robot Framework
What it is and what it does
Robocop is a linter and code formatter designed specifically for Robot Framework test automation code. It parses Robot Framework files using the official parsing API and runs a suite of checks to identify potential errors and violations of code quality standards, then reports them with line numbers and contextual code snippets. The tool operates in two modes: check mode for linting and format mode for automatic code formatting.
It integrates with popular IDEs through the RobotCode plugin, supports configuration via TOML files (pyproject.toml, robocop.toml, or robot.toml), and allows rule customization and severity overrides. Rules can be disabled inline in source code or excluded globally. The tool produces reports compatible with CI/CD platforms like GitHub, GitLab, and SonarQube, and includes an MCP server for AI assistant integration.
Use it for:
- Enforce consistent code style and formatting across Robot Framework test suites in a team environment.
- Integrate linting checks into CI/CD pipelines to catch code quality issues before test execution.
- Automatically format Robot Framework code to match organizational coding standards.
- Identify potential errors and anti-patterns in Robot Framework test code during development.
- Configure custom rules and severity levels to match project-specific quality requirements.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Robocop is a static code analysis tool and formatter for Robot Framework code that detects linting issues and enforces code quality standards through the official Robot Framework parsing API.
Yes. Robocop is actively maintained, has no known vulnerabilities, installs with low friction, and is the standard linter for Robot Framework code. Install it if you write Robot Framework tests and want automated code quality checks and formatting; it's particularly valuable in team or CI/CD contexts.
Install
robotframework-robocop on PyPI
pip
pip install robotframework-robocopuv
uv add robotframework-robocoppoetry
poetry add robotframework-robocopInstalling robotframework-robocop
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a release 2 days old and the last commit on 2026-08-14. Requires Python 3.10+ and Robot Framework 5.0+.
License in practice
Licensed under Apache Software License (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install robotframework-robocop
robocop check
robocop format
Requires Python 3.10+ and Robot Framework 5.0+
Verify before relying
- Whether the 11 runtime dependencies (jinja2, msgpack, pathspec, platformdirs, pytz, rich, robotframework, tomli-w, tomli, typer, typing-extensions) introduce any transitive security concerns or version conflicts in your environment.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 11 — jinja2, msgpack, pathspec, platformdirs, pytz, rich, robotframework, tomli-w, tomli, typer, typing-extensions |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,199,195/month — #4,230 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: robotframework_robocop-8.8.0-py3-none-any.whl
Keywords: automation, formatter, formatting, linter, qa, robotframework, testautomation, testing
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
robotframework-tidyRobotidy autoformats Robot Framework test code,…
permissive · top 15,000 on PyPI
robotcodeRobotCode is a language server and IDE toolkit…
permissive · top 15,000 on PyPI
robotframework-fakerWraps Faker's random test data generation as…
permissive · top 15,000 on PyPI
robotframeworkRobot Framework is a generic open-source…
permissive · top 5,000 on PyPI
robotcode-coreProvides core type definitions and utility…
permissive · top 15,000 on PyPI
robotframework-assertion-engineProvides a standardized assertion engine for…
permissive · top 15,000 on PyPI
robotframework-databaselibraryA Robot Framework library that adds keywords…
permissive · top 15,000 on PyPI
robotframework-browserBrowser automation library for Robot Framework…
permissive · top 5,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
vacuum-map-parser-baseProvides base classes and utilities for parsing…
permissive · top 15,000 on PyPI