flake8 and isort linting

This commit is contained in:
simon
2021-09-18 20:02:54 +07:00
parent d2d6835d53
commit ef64100d8f
13 changed files with 44 additions and 86 deletions

View File

@@ -1,8 +1,8 @@
#!/usr/bin/env python
""" check requirements.txt for outdated packages """
import sys
import pathlib
import sys
import requests
@@ -39,7 +39,7 @@ class Requirements:
package, version = dependency.split('==')
all_requirements.append((package, version.strip()))
all_requirements.sort(key = lambda x: x[0].lower())
all_requirements.sort(key=lambda x: x[0].lower())
return all_requirements
@@ -113,5 +113,6 @@ def main():
print('cancle update...')
sys.exit(1)
if __name__ == "__main__":
main()