Skip to content

Commit

Permalink
Fix formatting issues and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Devasy23 committed Mar 24, 2024
1 parent c85f886 commit 878c353
Show file tree
Hide file tree
Showing 30 changed files with 420 additions and 371 deletions.
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- [ ] Info
- [ ] Bug
- [ ] Documentation
- [ ] Other (please specify):
- [ ] Other (please specify):

## Description
<!-- Describe the issue in detail. What problem are you experiencing or what feature would you like to see added? -->
Expand All @@ -23,18 +23,18 @@

## Steps to Reproduce
<!-- If applicable, provide a step-by-step guide to reproducing the issue -->
1.
2.
3.
1.
2.
3.

## Screenshots / Code Snippets (if applicable)
<!-- Include any relevant screenshots or code snippets that can help understand the issue better -->

## Environment
<!-- Provide details about your environment -->
- Operating System:
- Browser (if applicable):
- Version/Commit ID (if applicable):
- Operating System:
- Browser (if applicable):
- Version/Commit ID (if applicable):

## Possible Solution (if you have any in mind)
<!-- If you have an idea about how to fix the issue, please share it here -->
Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ labels: ''
assignees: ''

---


2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Please describe the tests that you ran to verify your changes. Provide instructi
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
- [ ] Any dependent changes have been merged and published in downstream modules
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: devansh-shah-11/FaceRec
slug: devansh-shah-11/FaceRec
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ cython_debug/
venv/
*.pyc
.vscode/
__pyc
__pyc
15 changes: 5 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@ repos:
rev: v2.1.0
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
exclude: testing/*
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies: [types-all]
# - repo: https://github.com/PyCQA/flake8
# rev: 7.0.0
# hooks:
# - id: flake8
# exclude: testing/
8 changes: 5 additions & 3 deletions API/_init_.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import uvicorn
from fastapi import FastAPI

Expand All @@ -8,11 +10,11 @@
Fastapp.include_router(route.router)


@Fastapp.get("/")
@Fastapp.get('/')
def read_root():
return {"Hello": "FASTAPI"}
return {'Hello': 'FASTAPI'}


# function to run server of FastAPI
def run_fastapi_app():
uvicorn.run(Fastapp, host="127.0.0.1", port=8000)
uvicorn.run(Fastapp, host='127.0.0.1', port=8000)
4 changes: 3 additions & 1 deletion API/database.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from __future__ import annotations

from datetime import datetime

from pymongo import MongoClient


class Database:
def __init__(self, uri="mongodb://localhost:27017/", db_name="ImageDB"):
def __init__(self, uri='mongodb://localhost:27017/', db_name='ImageDB'):
self.client = MongoClient(uri)
self.db = self.client[db_name]

Expand Down
Loading

0 comments on commit 878c353

Please sign in to comment.