Skip to content

Commit

Permalink
Add pycodestyle analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldat committed Sep 11, 2023
1 parent 7781217 commit 9effcb5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
apt install pycodestyle
pip install pylint build
- name: Build package
run: |
Expand All @@ -34,5 +35,4 @@ jobs:
steps:
- name: Analysing the code with pylint
run: |
# pylint $(git ls-files '*.py')
echo "Test"
pycodestyle $(git ls-files '*.py')
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ where = src
include = clickjacking, dns_lookup, exec_shell_command, http_headers_grabber,
ip, logger, nmap_scanner, robots_scanner, whois_lookup, ip_info_finder,
pwned, phone_info

[pycodestyle]
ignore = E402, W504, E123
max-line-length = 160
2 changes: 1 addition & 1 deletion src/pwned/pwned.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def check_password(password: str, debug: bool = False) -> bool:
logger.info('Pwned')
logger.debug(f'{password} has previously appeared in '
f'a data breach, used {hashes[hash_string]} times, '
'and should never be used')
'and should never be used')
return True

logger.info('No pwnage found')
Expand Down

0 comments on commit 9effcb5

Please sign in to comment.