Skip to content

Commit 419ffcb

Browse files
authored
Merge pull request #15 from eadwinCode/scaffold_template_update
supported global_guards on server.ellar
2 parents addf196 + f4a8502 commit 419ffcb

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ repos:
1414
name: Code Formatting
1515
entry: "make fmt"
1616
types: [python]
17-
language_version: python3.6
17+
language_version: python3.8
1818
language: python
1919
- id: code_linting
2020
args: [ ]
2121
name: Code Linting
2222
entry: "make lint"
2323
types: [ python ]
24-
language_version: python3.6
24+
language_version: python3.8
2525
language: python
2626
- repo: https://github.com/pre-commit/pre-commit-hooks
2727
rev: v2.3.0

ellar_cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Ellar CLI Tool for Scaffolding Ellar Projects, Modules and also running Ellar Commands"""
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.1.2"

ellar_cli/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def typer_callback(
4040
ctx.meta[ELLAR_META] = meta_
4141

4242

43-
def build_typers() -> None:
43+
def build_typers() -> t.Any:
4444
try:
4545
options, args = getopt.getopt(
4646
sys.argv[1:],
@@ -53,7 +53,8 @@ def build_typers() -> None:
5353
if k in ["-p", "--project"] and v:
5454
app_name = v
5555
except Exception:
56-
raise typer.Abort()
56+
typer.Abort()
57+
return 1
5758

5859
meta_: t.Optional[EllarCLIService] = EllarCLIService.import_project_meta(app_name)
5960

ellar_cli/scaffolding/project_template/project_name/server.ellar

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ application = AppFactory.create_from_app_module(
1010
config_module=os.environ.get(
1111
ELLAR_CONFIG_MODULE, "{{project_name}}.config:DevelopmentConfig"
1212
),
13+
global_guards=[]
1314
)
1415

1516
# uncomment this section if you want API documentation

0 commit comments

Comments
 (0)