Skip to content

Commit

Permalink
Remove debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
BielStela committed Dec 20, 2023
1 parent 5634c7b commit 694338a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 32 deletions.
67 changes: 37 additions & 30 deletions data/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
hooks:
- id: gitleaks-docker

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.275
hooks:
- id: ruff
args: [ "--line-length=120", "--select=E,F,N", "--fix"]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.12.1
hooks:
- id: validate-pyproject

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
args: [ "--line-length=120" ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-black
args: [ "--line-length=100"]
- id: nbqa-isort
args: [ "--float-to-top", "--profile=black"]
- id: nbqa-ruff
args: [ "--line-length=100" , "--select=E,F,N", "--fix"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: ruff
args: [--fix]
types_or: [python, pyi, jupyter]

# check for private keys and passwords!
- repo: https://github.com/gitleaks/gitleaks
rev: v8.17.0
hooks:
- id: gitleaks-docker
- id: ruff-format
types_or: [python, pyi, jupyter]

# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.3.0
# hooks:
# - id: mypy
# language_version: python
# exclude: tests/.*
# additional_dependencies:
# - types-simplejson
# - types-attrs
# - pydantic~=2.0

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
6 changes: 4 additions & 2 deletions tiler/app/main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""Main app entrypoint."""

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from titiler.core import TilerFactory
from titiler.core.errors import DEFAULT_STATUS_CODES, add_exception_handlers
from titiler.core.middleware import TotalTimeMiddleware, LoggerMiddleware
from titiler.core.middleware import LoggerMiddleware, TotalTimeMiddleware

from .config.config import get_settings
from .middlewares.auth_middleware import AuthMiddleware
Expand All @@ -14,7 +16,7 @@
)
titiler_prefix = get_settings().titiler_prefix if get_settings().titiler_prefix is not None else "/cog"

app = FastAPI(title="LandGriffon Tiler", docs_url="/tiler/docs", openapi_url="/tiler", debug=True)
app = FastAPI(title="LandGriffon Tiler", docs_url="/tiler/docs", openapi_url="/tiler")
app.add_middleware(TotalTimeMiddleware)
app.add_middleware(LoggerMiddleware)
app.add_middleware(AuthMiddleware)
Expand Down

0 comments on commit 694338a

Please sign in to comment.