Skip to content

Commit

Permalink
Merge branch 'main' into work/1461/CRAFT-2371/ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau authored Oct 17, 2024
2 parents 4079119 + 2675880 commit bc3c396
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
5 changes: 3 additions & 2 deletions charmcraft/templates/init-django-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import logging
import typing

import ops
import paas_app_charmer.django

import paas_charm.django

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.django.Charm):
class {{ class_name }}(paas_charm.django.Charm):
"""Django Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
5 changes: 3 additions & 2 deletions charmcraft/templates/init-fastapi-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import logging
import typing

import ops
import paas_app_charmer.fastapi

import paas_charmer.fastapi

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.fastapi.Charm):
class {{ class_name }}(paas_charm.fastapi.Charm):
"""FastAPI Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
5 changes: 3 additions & 2 deletions charmcraft/templates/init-flask-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import logging
import typing

import ops
import paas_app_charmer.flask

import paas_charm.flask

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.flask.Charm):
class {{ class_name }}(paas_charm.flask.Charm):
"""Flask Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down
2 changes: 1 addition & 1 deletion charmcraft/templates/init-go-framework/requirements.txt.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ops ~= 2.17
paas-app-charmer>=1.1,<2
paas-charm>=1.0,<2
5 changes: 3 additions & 2 deletions charmcraft/templates/init-go-framework/src/charm.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import logging
import typing

import ops
import paas_app_charmer.go

import paas_charm.go

logger = logging.getLogger(__name__)


class {{ class_name }}(paas_app_charmer.go.Charm):
class {{ class_name }}(paas_charm.go.Charm):
"""Go Charm service."""

def __init__(self, *args: typing.Any) -> None:
Expand Down

0 comments on commit bc3c396

Please sign in to comment.