Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 flake8-to-ruff:

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

flake8-to-ruff will print the relevant pyproject.toml sections to standard output, like so:

[tool.ruff]
exclude = [
    '.svn',
    'CVS',
    '.bzr',
    '.hg',
    '.git',
    '__pycache__',
    '.tox',
    '.idea',
    '.mypy_cache',
    '.venv',
    'node_modules',
    '_state_machine.py',
    'test_fstring.py',
    'bad_coding2.py',
    'badsyntax_*.py',
]
select = [
    'A',
    'E',
    'F',
    'Q',
]
ignore = []

[tool.ruff.flake8-quotes]
inline-quotes = 'single'

[tool.ruff.pep8-naming]
ignore-names = [
    'foo',
    'bar',
]

Plugins

flake8-to-ruff will attempt to infer any activated plugins based on the settings provided in your configuration file.

For example, if your .flake8 file includes a docstring-convention property, flake8-to-ruff will enable the appropriate flake8-docstrings checks.

Alternatively, you can manually specify plugins on the command-line:

flake8-to-ruff path/to/.flake8 --plugin flake8-builtins --plugin flake8-quotes

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.)

License

MIT

Contributing

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

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.189.dev0.tar.gz (461.2 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.189.dev0-py3-none-win_amd64.whl (650.4 kB view details)

Uploaded Python 3Windows x86-64

flake8_to_ruff-0.0.189.dev0-py3-none-win32.whl (593.2 kB view details)

Uploaded Python 3Windows x86

flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_x86_64.whl (772.4 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_i686.whl (731.2 kB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_armv7l.whl (657.0 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_aarch64.whl (682.5 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (731.3 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (858.4 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (760.2 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (777.5 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64

flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (732.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ i686

flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (647.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (670.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

flake8_to_ruff-0.0.189.dev0-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.4 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.189.dev0-py3-none-macosx_10_7_x86_64.whl (717.7 kB view details)

Uploaded Python 3macOS 10.7+ x86-64

File details

Details for the file flake8_to_ruff-0.0.189.dev0.tar.gz.

File metadata

  • Download URL: flake8_to_ruff-0.0.189.dev0.tar.gz
  • Upload date:
  • Size: 461.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0.tar.gz
Algorithm Hash digest
SHA256 1d59c699dcdf7ced35bbac2485605c7658142b2a7ed11378e6cd58cdf77fb70d
MD5 21c7f4af39af6f4bf4d23fce46820b2b
BLAKE2b-256 5fc833d7a87711e91d20d5b8a0995a857f7f1e8165a61e4fee5a331556b45f58

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 6b4339e78dc51f724c1d793a5179f7b41eca68b8ea1dd40cd9565d43ff909cd6
MD5 63d4483bff41f01e4f19e0de508c9ca8
BLAKE2b-256 dbc40511f4107951fdda75bad4cdaac89d07f21c86e167099da7cddaeaf5048a

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-win32.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-win32.whl
Algorithm Hash digest
SHA256 17dc70413423052a980dddeb4e4dfb0d3333dedd2a2b5ac000267d95e4bd0e19
MD5 e1b5ea8f49f928dd077c6c2639d91145
BLAKE2b-256 1b8bb25208ec55ce3702938f9a6d3a8ac9018929826b6db4182447753481871b

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fcfa98d468ede559d57911fac2d196dbddc50b09e862f79853ceadf1351f982f
MD5 b0adb65cc1021d48eaf56b1c6e32d602
BLAKE2b-256 aff91ad8ffa39f630ea3d1984b74abb22fd657a016c7c37cbdd8ac27d3207460

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 c73094306229b87be37f1d421d7cabf6203ed62ded8cbf58078d561e27f76ca8
MD5 930f78aff988463c69938ba8ba90b4ac
BLAKE2b-256 3232a24c45345ead0ec545b765984f3b2f29fa71749d58f92236865d8ab70229

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 9b8df3a7feec2c9011a4f1008b1529f3016576a1b65bcbd6c1c361b3d3209caf
MD5 af6b303a0514778885f95cce606674c9
BLAKE2b-256 9f1c80dbfdea4f6aa320f670e5aaa0aa4d0dad9cd31a21234eae78406c7f14b4

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8fc4db84c83c25f4d4dddd5a376cc96fbb9aa036c57a1cbe4fcb04f1306f9039
MD5 e571675ca90984a2738a86ce27de2bfe
BLAKE2b-256 8023a6bc9175fec5cceb183d01550f4c482933b68f79bd8bc3f1b76c08b73731

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff19d5e801b768b23690a74b5779e7b683be5a69da296b56d727edad26986bae
MD5 b404c818fb7623e672705c640e787b2a
BLAKE2b-256 b341c5af7b9766b856e584821713381b07ce2a55a572e9bf6a8d7c8a1d65b751

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 af60c2e26a3586a6465b14062276bc92c4e0de19b7e46a8ca6414f748ab15e7b
MD5 e8af0219111b4bd63060638f6d31a877
BLAKE2b-256 d4c36e02cb60ce75fc1c59d0841b0d097599d3ce627293ecaac92925fca87a6f

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 76f7c536dbd3b1940ecb83fe11e21eec2a19dd7701c1994391e420334a1583cb
MD5 616e3f3f28b3ca6cb1c09097021fe69d
BLAKE2b-256 8abbeb4059b27197b312cf4ba08e290c426dec4d933757cf62792e5097a05705

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 4ee8018d2adccb4c6fcb6d57e763b21f3f43028b263b4919bf3347101715e8fb
MD5 5d7dbad035932542c605770e9be35b94
BLAKE2b-256 44d8c8063ab1a1a0b7df6267ea143a277dfdc4580fa97b307d9541520cd44c99

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e88f752300f24a34e553376d9e0370f95b31df67ab4cd8bd490fbaec8a970593
MD5 251479deb1277221bdc19656761594f5
BLAKE2b-256 deee6b7d70743cd40255143676b5e7f3852e49aba835ad96f41f929417e958f5

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ec44c748f970b487cc2f5a7b99c9e94be0d840aad988f6a01c9dc1d774e1f6e3
MD5 78d3905815245690b0340fd9f77d51e1
BLAKE2b-256 287ba2b0bf3105c226bebec70e952066421ae6bf8906a25b73cbdab5107e1553

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d61ffa409237945532317cbb47401656654667c58793f49fbd468d5311c430f9
MD5 2593c463abb6375f389b4b928b42ae2b
BLAKE2b-256 e38d84ca2f696f86c01111b1f97f144d2745a8d8c19737ecdb2d522e5a0ab38a

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-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.189.dev0-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 553dd1a8b02cc104f1a021ed0353316d1896203b33f2169cf15b2086a82fff92
MD5 598c2de6bf09ab5936b97c446eff5ab8
BLAKE2b-256 30fbed4f0158aa614ff397761fec32665efdf2137650e9d7e49a2839b7597537

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.189.dev0-py3-none-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.189.dev0-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 81fbb2240b0837819a86c203adbca60b9b3c15aabff78aadf27778bdbcff5543
MD5 12f37ffd4947fddb29a1c85bb1978b21
BLAKE2b-256 d8c006fdfd5933fb320a536ff16baa9171478df3cd7ef99774c6f26457268d02

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