mypy: zulip: Annotate integrations/svn/zulip_svn_config.py.
This commit is contained in:
parent
ab192fe937
commit
8becce7c98
|
@ -20,7 +20,6 @@ sys.path.append(os.path.dirname(TOOLS_DIR))
|
||||||
|
|
||||||
exclude = """
|
exclude = """
|
||||||
zulip/integrations/perforce/git_p4.py
|
zulip/integrations/perforce/git_p4.py
|
||||||
zulip/integrations/svn/zulip_svn_config.py
|
|
||||||
zulip/integrations/zephyr/process_ccache
|
zulip/integrations/zephyr/process_ccache
|
||||||
zulip/tests/__init__.py
|
zulip/tests/__init__.py
|
||||||
zulip/tests/test_default_arguments.py
|
zulip/tests/test_default_arguments.py
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
|
from typing import Dict, Optional, Text
|
||||||
|
|
||||||
# Change these values to configure authentication for the plugin
|
# Change these values to configure authentication for the plugin
|
||||||
ZULIP_USER = "svn-bot@example.com"
|
ZULIP_USER = "svn-bot@example.com"
|
||||||
|
@ -40,6 +41,7 @@ ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
|
||||||
# * stream "commits"
|
# * stream "commits"
|
||||||
# * topic "branch_name"
|
# * topic "branch_name"
|
||||||
def commit_notice_destination(path, commit):
|
def commit_notice_destination(path, commit):
|
||||||
|
# type: (Text, Text) -> Optional[Dict[Text, Text]]
|
||||||
repo = path.split('/')[-1]
|
repo = path.split('/')[-1]
|
||||||
if repo not in ["evil-master-plan", "my-super-secret-repository"]:
|
if repo not in ["evil-master-plan", "my-super-secret-repository"]:
|
||||||
return dict(stream = "commits",
|
return dict(stream = "commits",
|
||||||
|
|
Loading…
Reference in a new issue