Skip to content

Commit

Permalink
Export autometrics decorator from top level
Browse files Browse the repository at this point in the history
  • Loading branch information
あで committed Apr 6, 2023
1 parent 04f28c2 commit df4bb32
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
push:
branches: ["main"]

env:
POETRY_VIRTUALENVS_CREATE: true
POETRY_VIRTUALENVS_IN_PROJECT: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion examples/docs-example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import time
from autometrics.autometrics import autometrics
from autometrics import autometrics


@autometrics
Expand Down
2 changes: 1 addition & 1 deletion examples/example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from prometheus_client import start_http_server
from autometrics.autometrics import autometrics
from autometrics import autometrics
import time


Expand Down
2 changes: 1 addition & 1 deletion examples/fastapi-example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from fastapi import FastAPI, Response
import uvicorn
from autometrics.autometrics import autometrics
from autometrics import autometrics
from prometheus_client import generate_latest

app = FastAPI()
Expand Down
2 changes: 2 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[virtualenvs]
in-project = true
1 change: 1 addition & 0 deletions src/autometrics/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from autometrics.decorator import *
File renamed without changes.

0 comments on commit df4bb32

Please sign in to comment.