Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
cnheider committed May 24, 2024
1 parent b21b1e6 commit d18e697
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fail_fast: true
repos:
- repo: https://github.com/ambv/black
rev: 23.9.1
rev: 24.4.2
hooks:
- id: black
language_version: python3.10
Expand Down
3 changes: 1 addition & 2 deletions heimdallr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from importlib_resources import files

from apppath import AppPath
from warg import package_is_editable, clean_string, get_version
from warg import clean_string, get_version, package_is_editable

__project__ = "Heimdallr"
__author__ = "Christian Heider Nielsen"
Expand All @@ -20,7 +20,6 @@
@author: cnheider
"""


# __all__ = ["PROJECT_APP_PATH", "PROJECT_NAME", "PROJECT_VERSION", "get_version"]


Expand Down
10 changes: 4 additions & 6 deletions heimdallr/entry_points/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@
from typing import Any

import paho.mqtt.client as mqtt
import schedule
import schedule # TODO: USE PENDULUM INSTEAD
from draugr.writers import LogWriter, MockWriter, Writer
from warg import NOD, busy_indicator, ensure_existence

from heimdallr import PROJECT_APP_PATH, PROJECT_NAME
from heimdallr.configuration.heimdallr_config import ALL_CONSTANTS
from heimdallr.configuration.heimdallr_settings import (
HeimdallrSettings,
SettingScopeEnum,
)
from heimdallr.utilities.publisher.unpacking import pull_disk_usage_info, pull_gpu_info
from warg import NOD
from warg import busy_indicator
from warg import ensure_existence

from heimdallr import PROJECT_APP_PATH, PROJECT_NAME

__all__ = ["main"]

Expand Down
7 changes: 3 additions & 4 deletions heimdallr/utilities/server/github_org_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
Created on 29/03/2020
"""

import calendar

# https://github.com/pulls?q=is%3Aopen+is%3Apr+user%3Aaivclab+archived%3Afalse+
# https://github.com/pulls?user=aivclab
from datetime import datetime, timedelta
Expand Down Expand Up @@ -202,9 +204,6 @@ def get_pull_request(g, org_name, repo_name, pull_request_number):
)


import calendar


def utc_to_epoch(timestamp): # Timestamp is a datetime object in UTC time
"""
Expand All @@ -229,5 +228,5 @@ def utc_to_epoch(timestamp): # Timestamp is a datetime object in UTC time
else:
print("rate limited")

print(f"reset in {timedelta(seconds = reset_seconds)} ")
print(f"reset in {timedelta(seconds=reset_seconds)} ")
# print(list(yield_org_prs(gthb, 'aivclab')))
5 changes: 3 additions & 2 deletions heimdallr/utilities/server/meet_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

import requests

__all__ = ["team_members_status"]
__all__ = ["meet_members_status"]

from dash import html
from dash.html import Div, H3, H4, H2


def meet_members_status(access_token) -> List[html.Div]:
def meet_members_status(access_token: str) -> List[html.Div]:
"""
Get the status of all teams in the tenant
"""
Expand Down Expand Up @@ -57,6 +57,7 @@ def meet_members_status(access_token) -> List[html.Div]:

if __name__ == "__main__":
from exclude.calendar_app.tutorial.set_teams_config import s
import msal

app = msal.ConfidentialClientApplication(
s.teams_client_id,
Expand Down
4 changes: 3 additions & 1 deletion heimdallr/utilities/server/slack_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import requests

__all__ = ["team_members_status"]
__all__ = ["slack_members_status"]

from dash import html
from dash.html import Div, H3, H4, H2
Expand Down Expand Up @@ -58,6 +58,8 @@ def slack_members_status(access_token) -> List[html.Div]:
if __name__ == "__main__":
from exclude.calendar_app.tutorial.set_teams_config import s

import msal

app = msal.ConfidentialClientApplication(
s.teams_client_id,
authority=s.teams_authority,
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ fire
pyfiglet
schedule
sorcery
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
dash
plotly

0 comments on commit d18e697

Please sign in to comment.