From 58bf50fc03fd03c2f5b13ccb6a76515eed1ee694 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Thu, 11 Mar 2021 00:36:55 +0800 Subject: [PATCH] :children_crossing: add default settings --- .env | 19 +++++++++++++++++++ .gitignore | 6 +++--- src/libs/github/__init__.py | 6 +++--- 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 0000000..4eb11d6 --- /dev/null +++ b/.env @@ -0,0 +1,19 @@ +ENVIRONMENT=dev +HOST=0.0.0.0 +PORT=8080 +DEBUG=false + +PLUGINS=[] +PLUGIN_DIRS=["src/plugins"] + +# leaving space to load from system env + +# nonebot-plugin-sentry +# See Also: https://sentry.io/ +SENTRY_DSN= + +# github +# See Also: https://github.com/settings/developers +GITHUB_CLIENT_ID= +GITHUB_CLIENT_SECRET= +GITHUB_REDIRECT_URI= diff --git a/.gitignore b/.gitignore index bf55646..cc0b679 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.env* +.env.* src/plugins/**/poetry.lock # Created by https://www.toptal.com/developers/gitignore/api/python,visualstudiocode @@ -111,7 +111,7 @@ celerybeat.pid *.sage.py # Environments -.env +# .env .venv env/ venv/ @@ -152,4 +152,4 @@ dmypy.json # Ignore all local history of files .history -# End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/python,visualstudiocode diff --git a/src/libs/github/__init__.py b/src/libs/github/__init__.py index 5177e51..d1eea8c 100644 --- a/src/libs/github/__init__.py +++ b/src/libs/github/__init__.py @@ -4,7 +4,7 @@ @Author : yanyongyu @Date : 2021-03-09 17:13:37 @LastEditors : yanyongyu -@LastEditTime : 2021-03-09 18:36:19 +@LastEditTime : 2021-03-10 21:47:26 @Description : None @GitHub : https://github.com/yanyongyu """ @@ -35,8 +35,8 @@ class Github: retry: Optional[int] = None, verify: bool = True): self._requester = Requester(token_or_client_id, client_secret, base_url, - timeout, user_agent, per_page, verify, - retry) + timeout, user_agent, per_page, retry, + verify) @property def oauth_scopes(self):