diff --git a/.github/workflows/deploy-job.yml b/.github/workflows/deploy-job.yml index 6f821f7..5773c0a 100644 --- a/.github/workflows/deploy-job.yml +++ b/.github/workflows/deploy-job.yml @@ -24,15 +24,30 @@ 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 . + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: built-artifacts + path: dist/ + retention-days: 1 test: runs-on: ubuntu-latest needs: build steps: - - name: Analysing the code with pylint + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + sudo apt install pycodestyle + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: built-artifacts + - name: Analysing the code with pycodestyle run: | - # pylint $(git ls-files '*.py') - echo "Test" + ls -la + pycodestyle src/**/*.py diff --git a/setup.cfg b/setup.cfg index 460def3..8d4feca 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/src/pwned/pwned.py b/src/pwned/pwned.py index 1ee224a..cf4ba9f 100644 --- a/src/pwned/pwned.py +++ b/src/pwned/pwned.py @@ -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')