Skip to content

Commit

Permalink
202001.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lechgu committed Jan 18, 2020
1 parent cf03620 commit 5887a38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions hush/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from . import keypairs, passwords, secrets

DEFAULT_CONFIG_FILE = "~/.hush"
DEFAULT_PASSWORD_LENGTH = 8
DEFAULT_PASSWORD_LENGTH = 16
DEFAULT_CHARACTER_CLASSES = "aA8#"


Expand Down Expand Up @@ -64,7 +64,7 @@ def config_callback(ctx, param, value):


@click.group()
@click.version_option("202001.2")
@click.version_option("202001.3")
@click.option(
"-c",
"--config-file",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ multi_line_output=3
include_trailing_comma = true

[pycalver]
current_version = "v202001.0001"
current_version = "v202001.0003"
version_pattern = "{pycalver}"
commit = false
tag = false
Expand All @@ -30,7 +30,7 @@ push = false

[tool.poetry]
name = "hush"
version = "202001.2"
version = "202001.3"
description = "Minimalistic command line secret management"
license = "BSD-3-Clause"
authors = ["Lech Gudalewicz <[email protected]>"]
Expand Down
6 changes: 4 additions & 2 deletions tests/test_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_version():
runner = CliRunner()
output = runner.invoke(cli, "--version").output.strip()

assert "202001.2" in output
assert "202001.3" in output


def test_generate_default():
Expand Down Expand Up @@ -78,7 +78,9 @@ def test_generate_nonalphanumeric():
assert result.exit_code == 0
output = result.output.strip()
nonalphanumeric = r"~!@#$%^&*_-+=|\(){}[]:;<>,.?/"
assert len(output) == 8

assert len(output) == DEFAULT_PASSWORD_LENGTH

assert all([x in nonalphanumeric for x in output])


Expand Down

0 comments on commit 5887a38

Please sign in to comment.