Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions install_station/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

def lower_case(text: str) -> bool:
"""
Find if password contain only lower case.
Find if password contains only lower case.
:param text: password

:return: True if password contain only lower case
:return: True if password contains only lower case
"""
search = re.compile(r'[^a-z]').search
return not bool(search(text))
Expand All @@ -23,10 +23,10 @@ def lower_case(text: str) -> bool:
# Find if password contain only upper case
def upper_case(text: str) -> bool:
"""
Find if password contain only upper case.
Find if password contains only upper case.
:param text: password

:return: True if password contain only upper case
:return: True if password contains only upper case
"""
search = re.compile(r'[^A-Z]').search
return not bool(search(text))
Expand All @@ -35,10 +35,10 @@ def upper_case(text: str) -> bool:
# Find if password contain only lower case and number
def lower_and_number(text: str) -> bool:
"""
Find if password contain only lower case and number.
Find if password contains only lower case and number.
:param text: password

:return: True if password contain only lower case and number
:return: True if password contains only lower case and number
"""
search = re.compile(r'[^a-z0-9]').search
return not bool(search(text))
Expand All @@ -47,22 +47,22 @@ def lower_and_number(text: str) -> bool:
# Find if password contain only upper case and number
def upper_and_number(text: str) -> bool:
"""
Find if password contain only upper case and number.
Find if password contains only upper case and number.
:param text: password

:return: True if password contain only upper case and number
:return: True if password contains only upper case and number
"""
search = re.compile(r'[^A-Z0-9]').search
return not bool(search(text))


# Find if password contain only lower and upper case and
# Find if password contains only lower and upper case and
def lower_upper(text: str) -> bool:
"""
Find if password contain only lower and upper case and
Find if password contains only lower and upper case and
:param text: password

:return: True if password contain only lower and upper case and
:return: True if password contains only lower and upper case and
"""
search = re.compile(r'[^a-zA-Z]').search
return not bool(search(text))
Expand All @@ -82,16 +82,16 @@ def lower_upper_number(text: str) -> bool:
return not bool(search(text))


# Find if password contain only lowercase, uppercase numbers
# and some special character.
# Find if password contains only lowercase, uppercase numbers
# and some special characters.
def all_character(text: str) -> bool:
"""
Find if password contain only lowercase, uppercase numbers
and some special character.
Find if password contains only lowercase, uppercase numbers
and some special characters.
:param text: password

:return: True if password contain only lowercase, uppercase numbers
and some special character.
:return: True if password contains only lowercase, uppercase numbers
and some special characters.
"""
search = re.compile(r'[^a-zA-Z0-9~!@#$%^&*_+":;\'-]').search
return not bool(search(text))
Expand Down
2 changes: 1 addition & 1 deletion install_station/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Contains the data class and some commonly use variables
Contains the data class and some commonly used variables
"""
import gettext

Expand Down
2 changes: 1 addition & 1 deletion install_station/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def read_output(command, progressbar):
break
progressbar_text = line.rstrip()
GLib.idle_add(update_progress, progressbar, progressbar_text)
# Those for next 4 line is for debugging only.
# These next 4 lines are for debugging only.
# filer = open(f"{tmp}/tmp", "a")
# filer.writelines(progressbar_text)
# filer.close
Expand Down
2 changes: 1 addition & 1 deletion install_station/install_type.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Module to create the inner window for select what type of installation.
Module to create the inner window for selecting what type of installation.
"""
import gi
gi.require_version('Gtk', '3.0')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def run(self):
description="Install Station - Streamlined GhostBSD installer",
license='BSD',
author='Eric Turgeon',
url='https://github/GhostBSD/install-station/',
url='https://github.com/GhostBSD/install-station/',
package_dir={'': '.'},
install_requires=['setuptools'],
packages=['install_station'],
Expand Down
Loading