diff --git a/.github/workflows/deploy-job.yml b/.github/workflows/deploy-job.yml index 6f821f7..c408e52 100644 --- a/.github/workflows/deploy-job.yml +++ b/.github/workflows/deploy-job.yml @@ -11,7 +11,6 @@ jobs: cat /etc/os-release build: runs-on: ubuntu-latest - needs: info strategy: matrix: python-version: [ "3.10" ] @@ -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 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')