Skip to main content

Convert existing Flake8 configuration to Ruff.

Project description

flake8-to-ruff

Convert existing Flake8 configuration files (setup.cfg, tox.ini, or .flake8) for use with Ruff.

Generates a Ruff-compatible pyproject.toml section.

Installation and Usage

Installation

Available as flake8-to-ruff on PyPI:

pip install flake8-to-ruff

Usage

To run Ruff, try any of the following:

flake8-to-ruff path/to/setup.cfg
flake8-to-ruff path/to/tox.ini
flake8-to-ruff path/to/.flake8

Limitations

  1. Ruff only supports a subset of the Flake configuration options. flake8-to-ruff will warn on and ignore unsupported options in the .flake8 file (or equivalent). (Similarly, Ruff has a few configuration options that don't exist in Flake8.)
  2. Ruff will omit any error codes that are unimplemented or unsupported by Ruff, including error codes from unsupported plugins. (See the Ruff README for the complete list of supported plugins.)
  3. flake8-to-ruff does not auto-detect your Flake8 plugins, so any reliance on Flake8 plugins that implicitly enable third-party checks will be ignored. Instead, add those error codes to your select or extend-select fields, so that flake8-to-ruff can pick them up.

License

MIT

Contributing

Contributions are welcome and hugely appreciated. To get started, check out the contributing guidelines.

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_to_ruff-0.0.93_dev.1.tar.gz (219.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

flake8_to_ruff-0.0.93_dev.1-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.2 MB view details)

Uploaded Python 3macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64macOS 11.0+ ARM64

flake8_to_ruff-0.0.93_dev.1-py3-none-macosx_10_7_x86_64.whl (654.8 kB view details)

Uploaded Python 3macOS 10.7+ x86-64

File details

Details for the file flake8_to_ruff-0.0.93_dev.1.tar.gz.

File metadata

  • Download URL: flake8_to_ruff-0.0.93_dev.1.tar.gz
  • Upload date:
  • Size: 219.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for flake8_to_ruff-0.0.93_dev.1.tar.gz
Algorithm Hash digest
SHA256 814b89b92526a2c699d6e751da18debee0bd64462d97561464a633019b533f7c
MD5 d429e297f8f0fec54123d6d92f5a8e4f
BLAKE2b-256 d9acf0478f636f13688754fd012b9a3d9a9718510288ce9ed7a34982a7e404ec

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.93_dev.1-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.93_dev.1-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 84c1f4243770f3846b742b1d04031f91e50d5dc071a7f30591ae0317f71de2a7
MD5 96d2f6cc55ce76937f72a13da04ec593
BLAKE2b-256 ea6bd2e7d9469e3a8dc50bdafe1f8e965fccee100e1f89abee09329ccf753de5

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.93_dev.1-py3-none-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.93_dev.1-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 115a2efc5b214ea16bd90500dd0970e5a962f4ecf9dda938759d71af5cddf969
MD5 4a011bbf503846b8187e5ad90efb1d9f
BLAKE2b-256 54677eee42e6bf747698a2cbdc03e6fce1c1ac0ed15eccd65f7de0c3eb28b7ed

See more details on using hashes here.

Supported by

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