summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2022-12-20 21:44:47 -0500
committerGitHub <noreply@github.com>2022-12-21 09:44:47 +0700
commit7ff729ecf2ffeffc8442811a7ad5c8a9ab24351c (patch)
treed76a1971dcfa7ccf567bae9032799c475a955207 /docs
parent4868142f4193c441b4995f54c70caad7b06dc093 (diff)
downloadcryptography-7ff729ecf2ffeffc8442811a7ad5c8a9ab24351c.tar.gz
Switch from flake8 to ruff (#7920)
It's more than 60x faster.
Diffstat (limited to 'docs')
-rw-r--r--docs/_ext/cryptography-docs.py1
-rw-r--r--docs/development/custom-vectors/arc4/generate_arc4.py1
-rw-r--r--docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py1
-rw-r--r--docs/development/custom-vectors/secp256k1/generate_secp256k1.py1
-rw-r--r--docs/development/custom-vectors/secp256k1/verify_secp256k1.py1
-rw-r--r--docs/development/submitting-patches.rst2
6 files changed, 1 insertions, 6 deletions
diff --git a/docs/_ext/cryptography-docs.py b/docs/_ext/cryptography-docs.py
index 1131f6a0e..43a9c6cb8 100644
--- a/docs/_ext/cryptography-docs.py
+++ b/docs/_ext/cryptography-docs.py
@@ -5,7 +5,6 @@
from docutils import nodes
from docutils.parsers.rst import Directive
-
DANGER_MESSAGE = """
This is a "Hazardous Materials" module. You should **ONLY** use it if you're
100% absolutely sure that you know what you're doing because this module is
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``.