Skip to main content

Invoke ruff using flake8 options

Project description

flake8-ruff-wrapper

This is a package that allows you to use ruff as a replacement to flake8 without migrating your configuration to pyproject.toml and keeping the config format

It actually depends on flake8 and ruff and simply bridges the two tools.

Usage:

% cat .flake8
[flake8]
ignore = E203,W503
max-line-length = 88
% flake8-ruff some_file.py
# invokes ruff with configuration that matches the settings defined in .flake8

Using with pre-commit

See pre-commit for instructions

Sample .pre-commit-config.yaml

-   repo: https://github.com/fsouza/flake8-ruff-wrapper
    rev: v0.2.0
    hooks:
    -   id: flake8-ruff

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake8_ruff_wrapper-0.4.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

flake8_ruff_wrapper-0.4.0-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page