Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
juanbc committed Jan 9, 2025
1 parent 062b5f5 commit 2311251
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 14 deletions.
9 changes: 4 additions & 5 deletions ajc.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@

import ajiaco as ajc


app = ajc.AjcApplication(
filename=__file__,
secret="xcsosslbRaiSUBJUO5Dn42F4Ym4dXETrnxfJjd+YJS4=",
verbose=True)
verbose=True,
)


app.set_experiment_sessions_defaults(
doc="",
currency_per_point=0.1,
participation_fee=1.0)
doc="", currency_per_point=0.1, participation_fee=1.0
)


# =============================================================================
Expand Down
2 changes: 1 addition & 1 deletion ajiaco/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
__all__ = ["Application"]


VERSION = 0.2
VERSION = 0.2
4 changes: 1 addition & 3 deletions ajiaco/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def set_experiment_sessions_defaults(self, **kwargs):
self._experiment_sessions_defaults.update(kwargs)

def run_from_command_line(self):
cli_manager = AjcCLIManager(
commands=[self.commands, CLI_BUILTINS]
)
cli_manager = AjcCLIManager(commands=[self.commands, CLI_BUILTINS])
return cli_manager.parse_and_run(app=self)

# SCHEMA = {
Expand Down
3 changes: 1 addition & 2 deletions ajiaco/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from .builtins import CLI_BUILTINS
from .manager import AjcCLIManager
from .register import AjcCommandRegister
from .register import AjcCommandRegister
1 change: 0 additions & 1 deletion ajiaco/storage/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class AjcStorageSession(orm.Session):

def __init__(self, storage, *args, **kwargs):
super().__init__(*args, **kwargs)
self.storage = storage
Expand Down
1 change: 0 additions & 1 deletion ajiaco/webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class AjcEndpoint:

@classmethod
def get_path(cls):
return cls.path
Expand Down
1 change: 1 addition & 0 deletions ajiaco/webapp/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from . import routes


@attrs.define(frozen=True)
class AjcWebApp:

Expand Down
4 changes: 3 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

stg = storage.AjcStorage.from_url(url)

import ipdb; ipdb.set_trace()
import ipdb

ipdb.set_trace()
with stg.transaction() as ses:
ses.create_tables()

0 comments on commit 2311251

Please sign in to comment.