Convert existing Flake8 configuration to Ruff.
Project description
flake8-to-ruff
[!WARNING]
flake8-to-ruff
is no longer supported. You may experience warnings or breakages when using it with versions of Ruff released afterv0.0.233
.
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
- 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.) - Ruff will omit any rule codes that are unimplemented or unsupported by Ruff, including rule 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file flake8_to_ruff-0.0.234.tar.gz
.
File metadata
- Download URL: flake8_to_ruff-0.0.234.tar.gz
- Upload date:
- Size: 726.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f1eb4115523f28d9cabaa06c26ee88ea68d1193b1a09209bac9d30949a8b22 |
|
MD5 | be4e85a44e01c2c70c7fc2b3a7a125dd |
|
BLAKE2b-256 | 79cd5268a5dc9c2cb2bcd6004af8c3ccbbaea33f3d1b008a41fac94378ec2cbd |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-win_amd64.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-win_amd64.whl
- Upload date:
- Size: 789.0 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10b06c830d88c97f618d6e68a4b3afc8d0e0a74c8c571444ff618e517264f355 |
|
MD5 | 8478d620fc1b95d3415c49c6a50f16f5 |
|
BLAKE2b-256 | efd81d5a3ba965b364b0274af20b7caf95351b0d911d1965647dd791aaadf293 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-win32.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-win32.whl
- Upload date:
- Size: 722.3 kB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3c985e6db3a2ca349a1ae2577bf32373cbe5c69d376e6a22828ec13899d431f |
|
MD5 | 001e70d4fe63639a74466a74e1c70a93 |
|
BLAKE2b-256 | a50d90a64b9238a839f83cd9714e34a1b7aedae3eb6de224bc9e647dd5cbf2a6 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 913.5 kB
- Tags: Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0483771d2c7107ac7fd494ae8770f2323eeaaab41acd4071f96763cb8a8c119 |
|
MD5 | f4eca1516aa1b293fa8cce137380e090 |
|
BLAKE2b-256 | 4d9adf3c1d600cf0acdbfbe17dc67a35fb2bb41cad9dacba224b92ede9fa85ba |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_i686.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_i686.whl
- Upload date:
- Size: 872.8 kB
- Tags: Python 3, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f5e6f9ca06b7b18f52101c509c95cf0b035183dd9804616691834b04ae478b |
|
MD5 | 11f7ba7ba89fc3059fdc70e7b7930372 |
|
BLAKE2b-256 | acee5ffcb03897f4cfa5895c30d5b3d8d0d1729b7f3f665bac4cac5be0f6ad9e |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_armv7l.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 788.7 kB
- Tags: Python 3, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06ac25865ae185dc29efbe32ce6ad7a5280df8031a05ab8bd64f9ed7609d9960 |
|
MD5 | 9b54fb69245b4037c075cec94ef08ead |
|
BLAKE2b-256 | c2068450852b081032dd884fa38d6b53b8f74b2f8039827b40df146d658e3c62 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_aarch64.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 807.1 kB
- Tags: Python 3, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf79a254cde5aafbd3206a7b7313484ef7a458b2782e1498fbdb99a3a9fd24ae |
|
MD5 | 4090362014ce5cd88a4f5ef2d2828705 |
|
BLAKE2b-256 | fdd030c1234ebd2060924817c43a364f38b833f41fbb0f46fa686ccd52b2e817 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 870.3 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5cbb3fc82004252e74caf50db53e8356e31a021f308abf3488e9b92ca085678 |
|
MD5 | 5d68ffd99d32886c27b9d17fcacadc7e |
|
BLAKE2b-256 | 4443c781d54efaa5f5594268e5b1544a5441d675b0b5d5890c6701973d31df1c |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574c0542b24afb70bf88128bb57ecdac3dc35b9b2c2ae6faadf76011b742df21 |
|
MD5 | 7268b4a0f427646452a387dc86905e08 |
|
BLAKE2b-256 | 708fc5e5cbc5a8ad9614e12de41e3c35fb2a8ce14a4bae956c6ba07095e117f5 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 913.4 kB
- Tags: Python 3, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5cd56a58e613f3f7d21079288b78c44bcd3e9c4ddde15b365c6b53756c91553 |
|
MD5 | 653f18627fe2a6fe2fd267a59f6b9df4 |
|
BLAKE2b-256 | b2b2ed8568ccf815fcca122a5059f37e1d89b166df093a09e5a4b86364b55206 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
- Upload date:
- Size: 922.1 kB
- Tags: Python 3, manylinux: glibc 2.17+ ppc64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b04d68150605a1858245b0d83f8e1f3240b6e7f5db19d774d284a0db6b8c04 |
|
MD5 | 2dec4ca7fab2b299c3abdfd98b6529cc |
|
BLAKE2b-256 | 49f604ec26726b0be82b0f115b18d6e621e2f943596b97695a4eedf0122ba8a4 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 873.6 kB
- Tags: Python 3, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1ed890618e907d7bfb8d3c7d8894382d9356ed540866e6874bc38697c9743de |
|
MD5 | 561bed4f0369d13ded94ba1748d7dc84 |
|
BLAKE2b-256 | e402409baf48cba73b3d49ce02e78a89683238582a221ace98b5da267b69b331 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 778.3 kB
- Tags: Python 3, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eced8c763304c1d2b254a500ccf5920d62b0f333f8b51d06b7a4f38fa185509 |
|
MD5 | c1d10f23f1c0ed0c3f280328b31716e2 |
|
BLAKE2b-256 | 26f45174d686ac4fbd6cd482dd170396e9334b1a306c5024cbc743ee403951c7 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 796.4 kB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a2bcdc1f5650742e52a859f8675ee944067ce7d9ddb69e54bb7886a30ddfc7b |
|
MD5 | c336b2a2a1bda5386f0ca7b72cfb8802 |
|
BLAKE2b-256 | 8f7b0f32c8f25f7d69f1a653b917b7380a28e41c6c93ace795f4f75b47eb36e0 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5c7b7599deb35443fc4dfccb14ddcd4ac8234b39b8acf77e40b3acfcadf6f8 |
|
MD5 | a478dfa363b68cb88b92fdb0350e4412 |
|
BLAKE2b-256 | dbc72eecad034961e87f40ab9f71bc54d67662de3b16bd4569cb31cc4411a2f6 |
File details
Details for the file flake8_to_ruff-0.0.234-py3-none-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: flake8_to_ruff-0.0.234-py3-none-macosx_10_7_x86_64.whl
- Upload date:
- Size: 863.4 kB
- Tags: Python 3, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6e4bd5027b2ee2a97e0959420adf660747dac5bfbce065bf98d283837c83c30 |
|
MD5 | 26f44ad96edd94409de588cbf8acb4df |
|
BLAKE2b-256 | de080c63ae4b04045429a5b3c37bf865995741000b023637c48530c31ce5bbc7 |