Skip to content

Commit

Permalink
Add yapf check for plugin/core/main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomv564 committed Nov 28, 2019
1 parent 11edfb0 commit bcab0c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ python:
before_install:
- pip install "mypy==0.570"
- pip install "flake8==3.5.0"
- pip install yapf
- pip install python-coveralls
- curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/travis.sh
# enable gui, see https://docs.travis-ci.com/user/gui-and-headless-browsers
Expand All @@ -27,5 +28,6 @@ script:
- flake8 plugin tests
- coverage run -m unittest discover
- sh travis.sh run_tests
- yapf --diff plugin/core/main.py
after_success:
- coveralls
25 changes: 14 additions & 11 deletions plugin/core/main.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import sublime

from .settings import settings, load_settings, unload_settings
from .logging import set_debug_logging, set_server_logging
from .registry import windows, load_handlers, unload_sessions
from .panels import destroy_output_panels
from .popups import popups
from ..diagnostics import DiagnosticsPresenter
from ..highlights import remove_highlights
from ..color import remove_color_boxes







try:
from typing import Any, List, Dict, Tuple, Callable, Optional, Set
assert Any and List and Dict and Tuple and Callable and Optional and Set
except ImportError:
pass

import sublime

from .settings import (
settings, load_settings, unload_settings
)
from .logging import set_debug_logging, set_server_logging
from .registry import windows, load_handlers, unload_sessions
from .panels import destroy_output_panels
from .popups import popups
from ..diagnostics import DiagnosticsPresenter


def startup() -> None:
load_settings()
Expand Down

0 comments on commit bcab0c0

Please sign in to comment.