mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
lint
This commit is contained in:
+2
-1
@@ -205,7 +205,7 @@ class Projects():
|
|||||||
logging.info(f"max util {max_util} for project {max_util_project}")
|
logging.info(f"max util {max_util} for project {max_util_project}")
|
||||||
logging.info(f"min util {min_util}")
|
logging.info(f"min util {min_util}")
|
||||||
logging.info(f"languages {languages}")
|
logging.info(f"languages {languages}")
|
||||||
tags = [ x.strip().lower() for x in tags ]
|
tags = [x.strip().lower() for x in tags]
|
||||||
tags = list(filter(lambda a: a != "", tags))
|
tags = list(filter(lambda a: a != "", tags))
|
||||||
|
|
||||||
def count_items(lst):
|
def count_items(lst):
|
||||||
@@ -223,6 +223,7 @@ class Projects():
|
|||||||
logging.info("top 10 tags")
|
logging.info("top 10 tags")
|
||||||
count_items(tags)
|
count_items(tags)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser(description="TinyTapeout configuration and docs")
|
parser = argparse.ArgumentParser(description="TinyTapeout configuration and docs")
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
flake8 --ignore E203,E123,E501,E221,E401,W605 configure.py project.py tt_tool.py orders.py documentation.py caravel.py
|
flake8 --ignore E203,E123,E501,E221,E401,W605 configure.py project.py tt_tool.py orders.py documentation.py caravel.py git_utils.py
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class Orders():
|
|||||||
try:
|
try:
|
||||||
with open(self.config['extra_projects']) as fh:
|
with open(self.config['extra_projects']) as fh:
|
||||||
config = yaml.safe_load(fh)
|
config = yaml.safe_load(fh)
|
||||||
except FileNotFoundError as e:
|
except FileNotFoundError:
|
||||||
config = []
|
config = []
|
||||||
|
|
||||||
config.append({'project': {'url' : git_url, 'timestamp' : time.time()}})
|
config.append({'project': {'url' : git_url, 'timestamp' : time.time()}})
|
||||||
@@ -75,7 +75,7 @@ class Orders():
|
|||||||
|
|
||||||
while after_open_date:
|
while after_open_date:
|
||||||
refunds = stripe.Refund.list(limit=10, starting_after=start_id)
|
refunds = stripe.Refund.list(limit=10, starting_after=start_id)
|
||||||
for refund in refunds:
|
for refund in refunds:
|
||||||
created = datetime.fromtimestamp(refund['created'])
|
created = datetime.fromtimestamp(refund['created'])
|
||||||
if created < self.open_date:
|
if created < self.open_date:
|
||||||
after_open_date = False
|
after_open_date = False
|
||||||
|
|||||||
Reference in New Issue
Block a user