-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from cal-itp/retries
retry on fs.get() plus some other cleanup
- Loading branch information
Showing
7 changed files
with
106 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.4.0 | ||
hooks: | ||
- id: flake8 | ||
args: ["--ignore=E501,W503"] # line too long and line before binary operator (black is ok with these) | ||
types: | ||
- python | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- repo: https://github.com/psf/black | ||
rev: 19.10b0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
args: ["--profile", "black"] | ||
- repo: https://github.com/pycqa/bandit | ||
rev: 1.7.0 | ||
hooks: | ||
- id: bandit | ||
args: ["-ll", "--skip=B108,B608,B310,B303"] | ||
files: .py$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,3 @@ gtfs-validator-api validate-gcs-bucket \ | |
gs://gtfs-data-test/schedule/2021-03-28T00:00:00+00:00 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
argh==0.26.2 | ||
backoff==1.11.1 | ||
gcsfs==0.8.0 | ||
aiohttp==3.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
from setuptools import setup, find_packages | ||
import ast | ||
import re | ||
|
||
from setuptools import setup | ||
|
||
# Read version number ---- | ||
|
||
import re | ||
import ast | ||
_version_re = re.compile(r'__version__\s+=\s+(.*)') | ||
|
||
with open('gtfs_validator_api.py', 'rb') as f: | ||
VERSION = str(ast.literal_eval(_version_re.search( | ||
f.read().decode('utf-8')).group(1))) | ||
_version_re = re.compile(r"__version__\s+=\s+(.*)") | ||
|
||
with open("gtfs_validator_api.py", "rb") as f: | ||
VERSION = str( | ||
ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)) | ||
) | ||
|
||
# Get README ---- | ||
|
||
|
@@ -27,10 +29,8 @@ | |
# license='MIT', | ||
# author_email='[email protected]', | ||
# url='https://github.com/cal-itp/gtfs_validator_api', | ||
keywords=['package', ], | ||
entry_points={ | ||
'console_scripts': ['gtfs-validator-api=gtfs_validator_api:main'], | ||
}, | ||
keywords=["package"], | ||
entry_points={"console_scripts": ["gtfs-validator-api=gtfs_validator_api:main"]}, | ||
install_requires=["argh"], | ||
python_requires=">=3.6", | ||
# long_description=README, | ||
|
This file was deleted.
Oops, something went wrong.