mypy: zulip: Annotate integrations/svn/zulip_svn_config.py.

This commit is contained in:
Alena Volkova 2017-10-10 00:54:49 -04:00
parent ab192fe937
commit 8becce7c98
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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",