Enable lints for the setup wizard

This commit is contained in:
Thomas Sileo 2019-04-22 22:41:58 +02:00
parent efe99f9477
commit cf525363af
2 changed files with 6 additions and 5 deletions

View file

@ -10,8 +10,9 @@ steps:
- pip install -U pip - pip install -U pip
- pip install mypy flake8 black - pip install mypy flake8 black
- black --check . - black --check .
- flake8 activitypub.py - flake8
- mypy --ignore-missing-imports . - mypy --ignore-missing-imports .
- mypy --ignore-missing-imports setup_wizard
# Build the container images we need for the test suite # Build the container images we need for the test suite
- name: build_containers - name: build_containers

View file

@ -9,7 +9,7 @@ from markdown import markdown
from prompt_toolkit import prompt from prompt_toolkit import prompt
def main(): def main() -> None:
print("Welcome to microblog.pub setup wizard\n") print("Welcome to microblog.pub setup wizard\n")
config_file = Path("/app/out/config/me.yml") config_file = Path("/app/out/config/me.yml")
@ -17,10 +17,10 @@ def main():
if config_file.exists() or env_file.exists(): if config_file.exists() or env_file.exists():
# Spit out the relative path for the "config artifacts" # Spit out the relative path for the "config artifacts"
config_file = "config/me.yml" rconfig_file = "config/me.yml"
env_file = ".env" renv_file = ".env"
print( print(
f"Existing setup detected, please delete {config_file} and/or {env_file} before restarting the wizard" f"Existing setup detected, please delete {rconfig_file} and/or {renv_file} before restarting the wizard"
) )
sys.exit(2) sys.exit(2)