Skip to content

Commit

Permalink
fix lint 1
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati committed Sep 15, 2022
1 parent 954a3d3 commit fd175de
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
VALIDATE_BASH: false
VALIDATE_TERRAFORM_TERRASCAN: false
VALIDATE_MARKDOWN: false
FILTER_REGEX_EXCLUDE: monitoring/.*
FILTER_REGEX_EXCLUDE: (monitoring/.*)|(dev/.*)
9 changes: 6 additions & 3 deletions dev/determine_shards.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import argparse
import asyncio
import math
import re
import statistics
import math
import rich

from typing import *

import rich

from utils import forward
from utils.forward import *
from utils.net import init
from utils.schema import Build, Stage
from utils.utils import init_log


def is_parallelizable(name: str, desc: str) -> bool:
Expand Down
Empty file added dev/utils/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion dev/utils/db.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from sqlalchemy import create_engine

from sqlalchemy import create_engine
from sqlalchemy.dialects.postgresql import insert


Expand Down
24 changes: 12 additions & 12 deletions dev/utils/forward.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
"""
Scrape Jenkins, send build data to Loki and Postgres
"""
import dataclasses
import aiohttp
import argparse
import asyncio
import dataclasses
import datetime
import sys
import os
import time
import json
import argparse
import logging
import os
import subprocess
import sys
import time
from pathlib import Path
from typing import *

# from sqlalchemy import select
from .utils import *
import aiohttp

from . import db, schema
from .net import *
from typing import *

from . import db
from . import schema
import logging
# from sqlalchemy import select
from .utils import *

SESSION = None
DEBUG = os.getenv("DEBUG", "0") == "1"
Expand Down
6 changes: 3 additions & 3 deletions dev/utils/net.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import requests
import subprocess
import os
import logging
import os
import subprocess
from pathlib import Path

import requests

CACHE_DIR = None
DEBUG = os.getenv("DEBUG", "0") == "1"
Expand Down
15 changes: 8 additions & 7 deletions dev/utils/schema.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
from typing import Any, Dict

import sqlalchemy
from sqlalchemy.orm import declarative_base
from sqlalchemy import (
JSON,
Boolean,
Column,
DateTime,
Integer,
String,
Boolean,
DateTime,
JSON,
Text,
column,
table,
)
from sqlalchemy.orm import declarative_base
from sqlalchemy.sql.sqltypes import Float
from sqlalchemy import table, column

from . import db
from typing import Dict, Any


Base = declarative_base()

Expand Down
5 changes: 2 additions & 3 deletions dev/utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import json
import sys
import asyncio
import json
import logging
import sys
from pathlib import Path


REPO_ROOT = Path(__file__).resolve().parent


Expand Down

0 comments on commit fd175de

Please sign in to comment.