Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added GitHub Workflow to Validate Code Styles #28

Merged
merged 4 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/validate-code-styles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Validate Code Styles"
on: [push]
jobs:
flake8:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install -y flake8 python3-pip
- run: pip3 install flake8-bugbear
- run: flake8 --require-plugins pycodestyle,flake8-bugbear
3 changes: 2 additions & 1 deletion wordfence/cli/scan/config/config_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

from ..reporting import ReportFormat, ReportColumn
from wordfence.cli.config.defaults import INI_DEFAULT_PATH
from wordfence.util.pcre import PCRE_DEFAULT_MATCH_LIMIT, PCRE_DEFAULT_MATCH_LIMIT_RECURSION
from wordfence.util.pcre import PCRE_DEFAULT_MATCH_LIMIT, \
PCRE_DEFAULT_MATCH_LIMIT_RECURSION

KIBIBYTE = 1024
MEBIBYTE = 1024 * 1024
Expand Down
21 changes: 0 additions & 21 deletions wordfence/logging/Handlers.py

This file was deleted.