Skip to content

Commit

Permalink
Merge pull request #28 from wordfence/validate-code-styles
Browse files Browse the repository at this point in the history
Added GitHub Workflow to Validate Code Styles
  • Loading branch information
akenion authored Aug 29, 2023
2 parents ff21604 + bca3ed3 commit 7a9d7ed
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 22 deletions.
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.

0 comments on commit 7a9d7ed

Please sign in to comment.