Skip to content

Commit

Permalink
Separate operation models into separate files (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
fivegrant authored Feb 14, 2024
1 parent 4a036c5 commit 63d5447
Show file tree
Hide file tree
Showing 12 changed files with 325 additions and 353 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ dist
build

# MISC
.ruff_cache
create.sql
.eslintcache

.version
*.nix
venv
flake.lock
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyciemss-service"
version = "1.7.0"
version = "2.0.0"
description = "PyCIEMSS simulation service to run CIEMSS simulations"
authors = ["Powell Fendley", "Five Grant"]
readme = "README.md"
Expand Down Expand Up @@ -54,3 +54,6 @@ build-backend = "poetry.core.masonry.api"

[tool.ruff]
ignore = ["E501"]

[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
2 changes: 1 addition & 1 deletion service/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from fastapi import FastAPI, Depends, HTTPException
from fastapi.middleware.cors import CORSMiddleware

from models import (
from service.models import (
Status,
JobResponse,
Calibrate,
Expand Down
350 changes: 0 additions & 350 deletions service/models.py

This file was deleted.

4 changes: 4 additions & 0 deletions service/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import models.base
import models.converters
from models.operations import *
from models.response import *
Loading

0 comments on commit 63d5447

Please sign in to comment.