Skip to content

Commit

Permalink
Merge branch 'main' into typing-alembic
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain-S committed Jan 8, 2025
2 parents f19ef48 + b99ac94 commit 3bd8438
Show file tree
Hide file tree
Showing 36 changed files with 2,209 additions and 2,639 deletions.
6 changes: 6 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Security Policy

## Reporting a Vulnerability

If you find a security vulnerability in this project, we encourage you to let us know immediately. Please report it privately via [reporting security vulnerabilities](https://github.com/alan-turing-institute/rctab-api/security/advisories).
We will investigate all legitimate reports and provide a fix as quickly as possible.
3,882 changes: 1,958 additions & 1,924 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "RCTab"
version = "1.4.0"
version = "1.5.0"
description = "The RCTab API. Manage Azure budgets and usage"
authors = []

Expand All @@ -25,6 +25,7 @@ pydantic = { extras = ["email"], version = "^2.7.1" }
pydantic-settings = "^2.3.4"
PyJWT = { extras = ["crypto"], version = "^2.4.0" }
python-dotenv = "^1.0.1"
rctab_models = { git = "https://github.com/alan-turing-institute/rctab-models", tag = "0.1.0" }
redis = {extras = ["hiredis"], version = "^5.0.1"}
requests = "^2.32.3"
sendgrid = "^6.9.1"
Expand Down
3 changes: 1 addition & 2 deletions rctab/crud/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""The SQLAlchemy models, Pydantic models and database logic."""

from rctab.crud import accounting_models, models, schema
from rctab.crud import accounting_models, models

__all__ = [
"models",
"accounting_models",
"schema",
]
2 changes: 1 addition & 1 deletion rctab/crud/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import msal
from asyncpg.exceptions import UniqueViolationError
from fastapi import Depends, HTTPException
from rctab_models.models import UserRBAC
from sqlalchemy.dialects.postgresql import insert
from sqlalchemy.sql import select

from rctab.crud.models import database, user_cache, user_rbac
from rctab.crud.schema import UserRBAC


# Define cache functions
Expand Down
274 changes: 0 additions & 274 deletions rctab/crud/schema.py

This file was deleted.

Loading

0 comments on commit 3bd8438

Please sign in to comment.