Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.
/ flake8-ruff-wrapper Public archive

Simple wrapper that invokes ruff with settings defined in flake8 config files.

License

Notifications You must be signed in to change notification settings

fsouza/flake8-ruff-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.4.0
    hooks:
    -   id: flake8-ruff

About

Simple wrapper that invokes ruff with settings defined in flake8 config files.

Topics

Resources

License

Stars

Watchers

Forks

Languages