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.2.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

flake8_ruff_wrapper-0.2.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file flake8_ruff_wrapper-0.2.1.tar.gz.

File metadata

  • Download URL: flake8_ruff_wrapper-0.2.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for flake8_ruff_wrapper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4cdcb559d60939b2a7e613887d927b208c7e5670d31192cd9a7166273acc595e
MD5 bdc15954a861b28d1e8d26dc331e65e7
BLAKE2b-256 47b785233a89ca36bb3a95ce85ff742f76a57683bd5ce385e1d9d541d326ac7b

See more details on using hashes here.

File details

Details for the file flake8_ruff_wrapper-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flake8_ruff_wrapper-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a56b58a0f75ad52e99cf0622f8a25c1de321f9dbd5119ce71f00bdcf53905425
MD5 885ef6c237aa86dd8b7e7a5f37ed71cd
BLAKE2b-256 a940819ff41ac99bd1ac47354ea666c31818b9394b9cd840b430b3775dd45af3

See more details on using hashes here.

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