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.115_dev.0.tar.gz (285.9 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.115_dev.0-py3-none-win_amd64.whl (631.3 kB view details)

Uploaded Python 3Windows x86-64

flake8_to_ruff-0.0.115_dev.0-py3-none-win32.whl (573.8 kB view details)

Uploaded Python 3Windows x86

flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_x86_64.whl (757.6 kB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_i686.whl (717.3 kB view details)

Uploaded Python 3musllinux: musl 1.2+ i686

flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_armv7l.whl (639.7 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARMv7l

flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_aarch64.whl (665.6 kB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (714.8 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl (832.9 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ s390x

flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (742.4 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64le

flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (755.4 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ppc64

flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (629.8 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (653.5 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl (714.1 kB view details)

Uploaded Python 3manylinux: glibc 2.5+ i686

flake8_to_ruff-0.0.115_dev.0-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (1.3 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.115_dev.0-py3-none-macosx_10_7_x86_64.whl (686.1 kB view details)

Uploaded Python 3macOS 10.7+ x86-64

File details

Details for the file flake8_to_ruff-0.0.115_dev.0.tar.gz.

File metadata

  • Download URL: flake8_to_ruff-0.0.115_dev.0.tar.gz
  • Upload date:
  • Size: 285.9 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.115_dev.0.tar.gz
Algorithm Hash digest
SHA256 e774db5eed49275aa8902c43b9c785eeaca142367a0a6636b3ab18331100a857
MD5 09738b23606735aec19bbda491b53c21
BLAKE2b-256 5b7b59dc76dd061bce317c60aa7936703b3ef28bcf12620bfb93c2744c1727e4

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a21a4a26fa1249261a364b7141e9436466e523528b8f582fda399c7bc77b4d24
MD5 bd72bef2024d9bf0f71f3077c49bd532
BLAKE2b-256 c6f35b6c48eb3b68518575757862abed592a0eb4c3ca6beef6c998f45832e9a9

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-win32.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 6556ee85fca7770f1989cc402ebabbddfec387615cd08a502a0216a477c5a04d
MD5 6f9d50eb0fa76e7642129a0d9a4af997
BLAKE2b-256 bfd8ce781576fe64dbf53aa478e1e5bb15642dec485d889eabf3ad85a24fe255

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5dfe4fad886d489d4c829e03a36c6149a59f5444a516b8552b0cbc548e216852
MD5 4ca4f991f1f5826b118c1df162c7b321
BLAKE2b-256 8a7fd41f80d5872b25a58b7d5587a90c855494e7e4b0ebb8ec7824db0ccd43e8

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 bdbdf6347d77d4eea5fefdf0f10c08273de81f330dd55d27594303807b2a7a5f
MD5 7537ae2789600cf786fbf863bc6f78cd
BLAKE2b-256 32f6374ad7f911874a67c513c26da99bf211e10efa0d32c50ad61d6a44d03a86

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 f74450ea8635cddbd7d6e09f00cadb4c37eb2f579e5a41fe0f33c86179a4c7c9
MD5 8c54db998a373fe97e52a6f982ac509a
BLAKE2b-256 ca509ea70d7dce1f34c36826aff169fcf4157426859a8925a9adfd2a91f0e4ff

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 b007e2fa5a4ed980789a1fdaebcdbc1611b18aced55dbacbbf01227ef3b9e165
MD5 fadc5a808194d254fe491721e0ff3f56
BLAKE2b-256 ee651655447042762fbd2d7f1eab7125a1d96d4686d3802577bf7f292e3daf32

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dffdc5fa5901f42a32183afe85269c37b22f793ca1a0df0f82f4169b73841b1d
MD5 cbfb649dd96da9f516bc8b8740f8013f
BLAKE2b-256 9c797b90abb13b30a21e8d770b92ce66eb90e8f433c94b56df5c63457e11d8a5

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 c2b1c8927b8a9168cdb1bd1d4d8dc96f744895520d1a80841e44aa1c0499b529
MD5 848c2217ffcde765604e131ab186ca67
BLAKE2b-256 e448b83c858c32d98a601aa43f8b4468379af024ca76094dff7cbd266e05e8c0

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 f5e3f11bf6b060c8336224ed97afe8159c7d73e758c7ca70148e12c9860561ef
MD5 3e999d8e3dacb91ba915d38d3970990a
BLAKE2b-256 f8a14e82b465230451c0f1002baca006a7815d1178976cf1d01fbf77fc09e486

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 fcdd6058b75aa631d5b019274eac4df5e08bbea354bd323273ace8dc33fd3c53
MD5 56065aa956379b9e5a6efa4c78d0bd00
BLAKE2b-256 4fc29ac4378af45b4db7df8840f7ca680cfe5f7b4d9626b6266504970d6a6acd

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 275a6b4e18c551eafbc8b7e1f4c471599323d5d0e0c9232f6ed835f788f9fd26
MD5 60ebe1dbcbd50283286c4c5002783ff5
BLAKE2b-256 64eea0b50e84274f3e9a95a19e7dafa69c2c0520ba1511225a4ef717ee993793

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a60aa20dc5898a83320d7d8240c0d1c03013ad7b45fc28ba9452848913c3dd56
MD5 9f0c9fdb096044e928ea216e562a5f7a
BLAKE2b-256 77eed30431e2a8a1d1f3319cc5eb2d3c5a5b9ffcbd0e0ead48a149dcd65d1cda

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 d856c4547d585d3a671d470553adc75435332fdf6b9e8aa94cbf84cfdae82a35
MD5 5594d8f94eda9f87b3750e7b8b4c5bd7
BLAKE2b-256 95489bf88677345c5a9752e5a87203bda1ca269e3a7f066f9122edd529b58a60

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-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.115_dev.0-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4825318abb46d94179e8a4aa6247aee76e65a99d540206ce2813510b25768efe
MD5 ad48cd8f9a4e60a05ad713d5ce10a41d
BLAKE2b-256 4abcc4a4951175153b5de3a8519c3a78b40acccfad8b76a49a1ed5ec311f2b14

See more details on using hashes here.

File details

Details for the file flake8_to_ruff-0.0.115_dev.0-py3-none-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for flake8_to_ruff-0.0.115_dev.0-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 ad0bfbc6e8a8fea36bcbdf831ac92d57fd707034ef631ea80e8b226914891876
MD5 5fcba4a28574762504ae8acc0a543aa4
BLAKE2b-256 114f1b2428ad0abacfd9ad3c1da5424bcb67302a3b189a170a0ee8c6fbb79b7e

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page