diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2022-12-20 21:44:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-21 09:44:47 +0700 |
| commit | 7ff729ecf2ffeffc8442811a7ad5c8a9ab24351c (patch) | |
| tree | d76a1971dcfa7ccf567bae9032799c475a955207 /docs/development | |
| parent | 4868142f4193c441b4995f54c70caad7b06dc093 (diff) | |
| download | cryptography-7ff729ecf2ffeffc8442811a7ad5c8a9ab24351c.tar.gz | |
Switch from flake8 to ruff (#7920)
It's more than 60x faster.
Diffstat (limited to 'docs/development')
5 files changed, 1 insertions, 5 deletions
diff --git a/docs/development/custom-vectors/arc4/generate_arc4.py b/docs/development/custom-vectors/arc4/generate_arc4.py index 14a99d050..504d19643 100644 --- a/docs/development/custom-vectors/arc4/generate_arc4.py +++ b/docs/development/custom-vectors/arc4/generate_arc4.py @@ -7,7 +7,6 @@ import binascii from cryptography.hazmat.primitives import ciphers from cryptography.hazmat.primitives.ciphers import algorithms - _RFC6229_KEY_MATERIALS = [ ( True, diff --git a/docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py b/docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py index 009ba7fc7..6940f0400 100644 --- a/docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py +++ b/docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py @@ -8,7 +8,6 @@ import os from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.asymmetric import padding, rsa - from tests.utils import load_pkcs1_vectors, load_vectors_from_file diff --git a/docs/development/custom-vectors/secp256k1/generate_secp256k1.py b/docs/development/custom-vectors/secp256k1/generate_secp256k1.py index 2f1f69e94..ab616de7f 100644 --- a/docs/development/custom-vectors/secp256k1/generate_secp256k1.py +++ b/docs/development/custom-vectors/secp256k1/generate_secp256k1.py @@ -7,7 +7,6 @@ from ecdsa import SECP256k1, SigningKey from ecdsa.util import sigdecode_der, sigencode_der from cryptography_vectors import open_vector_file - from tests.utils import load_fips_ecdsa_signing_vectors, load_vectors_from_file HASHLIB_HASH_TYPES = { diff --git a/docs/development/custom-vectors/secp256k1/verify_secp256k1.py b/docs/development/custom-vectors/secp256k1/verify_secp256k1.py index 3ba21c8d6..7949a74ee 100644 --- a/docs/development/custom-vectors/secp256k1/verify_secp256k1.py +++ b/docs/development/custom-vectors/secp256k1/verify_secp256k1.py @@ -5,7 +5,6 @@ from cryptography.hazmat.primitives.asymmetric import ec from cryptography.hazmat.primitives.asymmetric.utils import ( encode_dss_signature, ) - from tests.utils import load_fips_ecdsa_signing_vectors, load_vectors_from_file CRYPTOGRAPHY_HASH_TYPES = { diff --git a/docs/development/submitting-patches.rst b/docs/development/submitting-patches.rst index 80a8bb496..4deaafe09 100644 --- a/docs/development/submitting-patches.rst +++ b/docs/development/submitting-patches.rst @@ -20,7 +20,7 @@ Code When in doubt, refer to :pep:`8` for Python code. You can check if your code meets our automated requirements by formatting it with ``black`` and running -``flake8`` against it. If you've installed the development requirements this +``ruff`` against it. If you've installed the development requirements this will automatically use our configuration. You can also run the ``tox`` job with ``tox -e flake``. |
