keepassxc_pwned/parser.py
changed.
keepassxc_pwned/keepass_wrapper.py
changed.
keepassxc_pwned/cli.py
changed.
Other files ignored by Codecov
README.md
has changed.
54 | 54 | if self._sha1 is None: |
|
55 | 55 | if self.password is not None: # type: ignore |
|
56 | 56 | self._sha1 = ( |
|
57 | - | hashlib.sha1(self.password.encode( |
|
58 | - | "utf-8")).hexdigest().upper() # type: ignore |
|
59 | - | ) |
|
57 | + | hashlib.sha1(self.password.encode( # type: ignore |
|
58 | + | "utf-8")).hexdigest().upper()) |
|
60 | 59 | return self._sha1 |
|
61 | 60 | ||
62 | 61 | def __eq__(self, other): |
38 | 38 | ||
39 | 39 | if keepassxc_cli_location is None: |
|
40 | 40 | # search for keepassxc-cli which default name on $PATH |
|
41 | - | keepassxc_cli_location = shutil.which( |
|
41 | + | keepassxc_location_output = shutil.which( |
|
42 | 42 | self.__class__.KEEPASSXC_CLI_NAME) |
|
43 | - | if keepassxc_cli_location is None: |
|
43 | + | if keepassxc_location_output is None: |
|
44 | 44 | logger.critical( |
|
45 | 45 | "Could not find a binary called {} on your $PATH.".format( |
|
46 | 46 | self.__class__.KEEPASSXC_CLI_NAME)) |
|
47 | 47 | sys.exit(1) |
|
48 | 48 | self.keepassxc_cli_location: pathlib.Path = pathlib.Path( |
|
49 | - | keepassxc_cli_location) |
|
49 | + | keepassxc_location_output) |
|
50 | 50 | else: |
|
51 | 51 | self.keepassxc_cli_location = keepassxc_cli_location |
|
52 | 52 | logger.debug("keepassxc-cli location: {}".format( |
31 | 31 | default=False, |
|
32 | 32 | is_flag=True, |
|
33 | 33 | help="Don't print status messages, just the summary") |
|
34 | - | @click.option( |
|
35 | - | "--keepassxc-cli", |
|
36 | - | type=click.Path(exists=True), |
|
37 | - | help="Specify a different location/name for the keepassxc-cli binary") |
|
34 | + | @click.option("--keepassxc-cli", |
|
35 | + | type=click.Path(exists=True), |
|
36 | + | help="Specify a different location for the keepassxc-cli binary") |
|
38 | 37 | @click.argument("database", required=True, type=click.Path(exists=True)) |
|
39 | 38 | def main(plaintext, key_file, verbose, quiet, database, keepassxc_cli): |
|
40 | 39 | """Check a keepassxc database against previously cracked haveibeenpwned passwords""" |
Files | Coverage |
---|---|
keepassxc_pwned | 97.04% |
Project Totals (10 files) | 97.04% |
TRAVIS_PYTHON_VERSION=3.8 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.7 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.8 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.8 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.7 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.6 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.8 TRAVIS_OS_NAME=linux
TRAVIS_PYTHON_VERSION=3.7 TRAVIS_OS_NAME=linux