Enable lints for the setup wizard
This commit is contained in:
@@ -10,8 +10,9 @@ steps:
|
||||
- pip install -U pip
|
||||
- pip install mypy flake8 black
|
||||
- black --check .
|
||||
- flake8 activitypub.py
|
||||
- flake8
|
||||
- mypy --ignore-missing-imports .
|
||||
- mypy --ignore-missing-imports setup_wizard
|
||||
|
||||
# Build the container images we need for the test suite
|
||||
- name: build_containers
|
||||
|
@@ -9,7 +9,7 @@ from markdown import markdown
|
||||
from prompt_toolkit import prompt
|
||||
|
||||
|
||||
def main():
|
||||
def main() -> None:
|
||||
print("Welcome to microblog.pub setup wizard\n")
|
||||
|
||||
config_file = Path("/app/out/config/me.yml")
|
||||
@@ -17,10 +17,10 @@ def main():
|
||||
|
||||
if config_file.exists() or env_file.exists():
|
||||
# Spit out the relative path for the "config artifacts"
|
||||
config_file = "config/me.yml"
|
||||
env_file = ".env"
|
||||
rconfig_file = "config/me.yml"
|
||||
renv_file = ".env"
|
||||
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)
|
||||
|
||||
|
Reference in New Issue
Block a user