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 6af4e23
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
cat /etc/os-release
build:
runs-on: ubuntu-latest
needs: info
strategy:
matrix:
python-version: [ "3.10" ]
Expand All @@ -24,15 +23,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt install pycodestyle
pip install pylint build
- name: Build package
run: |
python -m build .
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Install dependencies
run: |
sudo apt install pycodestyle
- name: Analysing the code with pylint
run: |
# pylint $(git ls-files '*.py')
echo "Test"
ls -la
pycodestyle src/**/*.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 6af4e23

Please sign in to comment.