File tree 11 files changed +29
-19
lines changed
11 files changed +29
-19
lines changed Original file line number Diff line number Diff line change 12
12
- master
13
13
paths :
14
14
- jarvis/**
15
- - ' pyproject.toml'
15
+ - pyproject.toml
16
16
workflow_dispatch :
17
+ inputs :
18
+ dry_run :
19
+ description : Dry run mode
20
+ required : true
21
+ options :
22
+ - " true"
23
+ - " false"
17
24
18
25
jobs :
19
26
pypi-publisher :
20
27
runs-on : thevickypedia-lite
21
28
steps :
22
29
- name : Set dry-run
23
30
run : |
24
- if [[ "${{ github.event_name }}" == "push" || "${{ github.event_name }}" == "workflow_dispatch" ]]; then
31
+ if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
32
+ echo "::notice title=DryRun::Setting dry run to ${{ inputs.dry_run }} for '${{ github.event_name }}' event"
33
+ echo "dry_run=${{ inputs.dry_run }}" >> $GITHUB_ENV
34
+ elif [[ "${{ github.event_name }}" == "push" ]]; then
25
35
echo "::notice title=DryRun::Setting dry run to true for '${{ github.event_name }}' event"
26
36
echo "dry_run=true" >> $GITHUB_ENV
27
37
else
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ threat
31
31
alarm
32
32
reminder
33
33
34
+ # pip build
35
+ build /
36
+ jarvis_ironman.egg-info /
37
+
34
38
# sphinx docs builder within docs_gen
35
39
docs_gen /_build
36
40
docs_gen /_static
Original file line number Diff line number Diff line change 7
7
8
8
![ Python] [ label-pyversion ]
9
9
![ Pypi-downloads] [ label-pypi-downloads ]
10
- [ ![ OpenSSF Scorecard] ( https://api.securityscorecards.dev/projects/github.com/thevickypedia/Jarvis/badge )] ( https://securityscorecards.dev/viewer/?uri=github.com/thevickypedia/Jarvis )
10
+ [ ![ OpenSSF Scorecard] [ label-open-ssf ]] [ link-open-ssf ]
11
11
12
12
** Platform Supported**
13
13
@@ -267,3 +267,6 @@ Licensed under the [MIT License][license]
267
267
[ label-maintainer ] : https://img.shields.io/badge/Maintained%20By-Vignesh%20Rao-blue.svg
268
268
269
269
[ label-askme ] : https://img.shields.io/badge/SELECT%20*%20FROM-questions-1abc9c.svg
270
+
271
+ [ label-open-ssf ] : https://api.securityscorecards.dev/projects/github.com/thevickypedia/Jarvis/badge
272
+ [ link-open-ssf ] : https://securityscorecards.dev/viewer/?uri=github.com/thevickypedia/Jarvis
Original file line number Diff line number Diff line change 7
7
8
8
![ Python] [ label-pyversion ]
9
9
![ Pypi-downloads] [ label-pypi-downloads ]
10
- [ ![ OpenSSF Scorecard] ( https://api.securityscorecards.dev/projects/github.com/thevickypedia/Jarvis/badge )] ( https://securityscorecards.dev/viewer/?uri=github.com/thevickypedia/Jarvis )
10
+ [ ![ OpenSSF Scorecard] [ label-open-ssf ]] [ link-open-ssf ]
11
11
12
12
** Platform Supported**
13
13
@@ -267,3 +267,6 @@ Licensed under the [MIT License][license]
267
267
[ label-maintainer ] : https://img.shields.io/badge/Maintained%20By-Vignesh%20Rao-blue.svg
268
268
269
269
[ label-askme ] : https://img.shields.io/badge/SELECT%20*%20FROM-questions-1abc9c.svg
270
+
271
+ [ label-open-ssf ] : https://api.securityscorecards.dev/projects/github.com/thevickypedia/Jarvis/badge
272
+ [ link-open-ssf ] : https://securityscorecards.dev/viewer/?uri=github.com/thevickypedia/Jarvis
Original file line number Diff line number Diff line change 7
7
8
8
![Python][label-pyversion]
9
9
![Pypi-downloads][label-pypi-downloads]
10
- [](https://securityscorecards.dev/viewer/?uri=github.com/thevickypedia/Jarvis)
10
+ [![OpenSSF Scorecard][label-open-ssf]][link-open-ssf]
11
11
12
12
**Platform Supported**
13
13
@@ -267,3 +267,6 @@ Licensed under the [MIT License][license]
267
267
[label-maintainer]: https://img.shields.io/badge/Maintained%20By-Vignesh%20Rao-blue.svg
268
268
269
269
[label-askme]: https://img.shields.io/badge/SELECT%20*%20FROM-questions-1abc9c.svg
270
+
271
+ [label-open-ssf]: https://api.securityscorecards.dev/projects/github.com/thevickypedia/Jarvis/badge
272
+ [link-open-ssf]: https://securityscorecards.dev/viewer/?uri=github.com/thevickypedia/Jarvis
Original file line number Diff line number Diff line change 10
10
- Creates a multiprocessing log wrapper, and adds a filter to include custom process name in the logger format.
11
11
"""
12
12
13
- import importlib
14
13
import logging
15
14
import os
16
15
import pathlib
30
29
pathlib .Path (api_config .DEFAULT_LOG_FILENAME ).touch ()
31
30
32
31
# Configure logging
33
- importlib .reload (module = logging )
34
32
dictConfig (config = api_config .LOG_CONFIG )
35
33
logging .getLogger (
36
34
"uvicorn.access"
Original file line number Diff line number Diff line change 1
- import importlib
2
- import logging
3
1
import os
4
2
import time
5
3
from urllib .parse import urljoin
11
9
from jarvis .modules .telegram import bot , webhook
12
10
from jarvis .modules .utils import support
13
11
14
- importlib .reload (module = logging )
15
-
16
12
FAILED_CONNECTIONS = {"count" : 0 }
17
13
18
14
Original file line number Diff line number Diff line change 4
4
5
5
"""
6
6
7
- import importlib
8
7
import logging
9
8
import os
10
9
import random
@@ -57,8 +56,6 @@ class __TestDatabase:
57
56
58
57
def __init__ (self ):
59
58
"""Initiates all the imported modules and creates a database file named ``sample``."""
60
- importlib .reload (module = logging )
61
-
62
59
handler = logging .StreamHandler ()
63
60
fmt_ = logging .Formatter (
64
61
fmt = "%(asctime)s - %(levelname)s - [%(module)s:%(lineno)d] - %(funcName)s - %(message)s" ,
Original file line number Diff line number Diff line change 18
18
datefmt = "%b-%d-%Y %I:%M:%S %p" , fmt = DEFAULT_LOG_FORM
19
19
)
20
20
21
- importlib .reload (module = logging )
22
21
dictConfig (
23
22
{
24
23
"version" : 1 ,
@@ -50,6 +49,7 @@ def multiprocessing_logger(
50
49
str:
51
50
Actual log filename with datetime converted.
52
51
"""
52
+ importlib .reload (logging )
53
53
logger .propagate = False
54
54
# Remove existing handlers
55
55
for _handler in logger .handlers :
Original file line number Diff line number Diff line change 5
5
6
6
"""
7
7
8
- import importlib
9
- import logging
10
8
import os
11
9
from typing import Callable
12
10
13
11
from pydantic import FilePath
14
12
15
13
from jarvis .modules .logger import logger
16
14
17
- importlib .reload (module = logging )
18
-
19
15
20
16
def audio_converter_mac () -> Callable :
21
17
"""Imports transcode from ftransc.
You can’t perform that action at this time.
0 commit comments