From 481735a5d18f8ec1bd558c09e6839ebb1424bfec Mon Sep 17 00:00:00 2001 From: Alex Kenion Date: Fri, 27 Sep 2024 12:34:05 -0400 Subject: [PATCH] Adjusted venv directory name in workflow and fixed style violation --- .github/workflows/validate-code-styles.yml | 6 +++--- wordfence/cli/config/base_config_definitions.py | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/validate-code-styles.yml b/.github/workflows/validate-code-styles.yml index 0b8d873..549118b 100644 --- a/.github/workflows/validate-code-styles.yml +++ b/.github/workflows/validate-code-styles.yml @@ -6,6 +6,6 @@ jobs: steps: - uses: actions/checkout@v3 - run: sudo apt-get update && sudo apt-get install -y python3-full - - run: python3 -m venv ./python-venv - - run: ./python-venv/bin/pip install flake8 flake8-bugbear - - run: ./python-venv/bin/python -m flake8 --exclude python-venv --require-plugins pycodestyle,flake8-bugbear + - run: python3 -m venv ./venv + - run: ./venv/bin/pip install flake8 flake8-bugbear + - run: ./venv/bin/python -m flake8 --exclude venv --require-plugins pycodestyle,flake8-bugbear diff --git a/wordfence/cli/config/base_config_definitions.py b/wordfence/cli/config/base_config_definitions.py index 7a34ef4..3cbce52 100644 --- a/wordfence/cli/config/base_config_definitions.py +++ b/wordfence/cli/config/base_config_definitions.py @@ -86,9 +86,7 @@ "if supported using the STARTTLS SMTP command.", "context": "ALL", "argument_type": "OPTION", - "meta": { - "valid_options": [mode.value for mode in SmtpTlsMode] - }, + "meta": {"valid_options": [mode.value for mode in SmtpTlsMode]}, "default": SmtpTlsMode.STARTTLS.value, "category": "Email" },