skillfed

robotframework-robocop

Static code analysis tool (linter) and code formatter for Robot Framework

robotframework-robocop v8.8.0 1.2M downloads/30d#4,230 on PyPI265
Permissive license Active released

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-robocop

uv

uv add robotframework-robocop

poetry

poetry add robotframework-robocop

Installing 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

Development Status :: 5 - Production/StableFramework :: Robot FrameworkFramework :: Robot Framework :: ToolIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Quality AssuranceTopic :: Software Development :: TestingTopic :: Utilities

Tags

robot framework linterrobot framework code formatterstatic analysis robot frameworkrobot framework quality checksrobot framework style enforcementrobot framework code qualityrobot framework linting tool
robot-frameworklintingcode-formatter

More Utilities packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

charset-normalizer

Detects and normalizes text encoding from…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

Pygments

Pygments is a syntax highlighter that colorizes…

permissive · top 100 on PyPI

six

Six provides utility functions to write Python…

permissive · top 100 on PyPI

robotframework-tidy

Robotidy autoformats Robot Framework test code,…

permissive · top 15,000 on PyPI

robotcode

RobotCode is a language server and IDE toolkit…

permissive · top 15,000 on PyPI

robotframework-faker

Wraps Faker's random test data generation as…

permissive · top 15,000 on PyPI

robotframework

Robot Framework is a generic open-source…

permissive · top 5,000 on PyPI

robotcode-core

Provides core type definitions and utility…

permissive · top 15,000 on PyPI

robotframework-assertion-engine

Provides a standardized assertion engine for…

permissive · top 15,000 on PyPI

robotframework-databaselibrary

A Robot Framework library that adds keywords…

permissive · top 15,000 on PyPI

robotframework-browser

Browser automation library for Robot Framework…

permissive · top 5,000 on PyPI

ruff

Ruff is a Python linter and code formatter…

permissive · top 1,000 on PyPI

vacuum-map-parser-base

Provides base classes and utilities for parsing…

permissive · top 15,000 on PyPI