Skip to content

Make nox lint each sample individually #468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion appengine/flexible/endpoints/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
import json
import os

import main
import pytest

import main


@pytest.fixture
def client(monkeypatch):
Expand Down
3 changes: 2 additions & 1 deletion appengine/flexible/extending_runtime/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@

import os

import main
import pytest

import main


@pytest.mark.skipif(
not os.path.exists('/usr/games/fortune'),
Expand Down
3 changes: 2 additions & 1 deletion appengine/flexible/extending_runtime_compat/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@

import os

import main
import pytest

import main


@pytest.mark.skipif(
not os.path.exists('/usr/games/fortune'),
Expand Down
3 changes: 2 additions & 1 deletion appengine/flexible/memcache/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import pytest

import main


def test_index():
try:
Expand Down
3 changes: 2 additions & 1 deletion appengine/flexible/pubsub/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
import json
import os

import main
import pytest

import main


@pytest.fixture
def client():
Expand Down
3 changes: 2 additions & 1 deletion appengine/flexible/redis/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import pytest

import main


def test_index():
try:
Expand Down
3 changes: 2 additions & 1 deletion appengine/flexible/storage/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import pytest
import requests
from six import BytesIO

import main


@pytest.fixture
def client():
Expand Down
Empty file removed appengine/standard/__init__.py
Empty file.
3 changes: 2 additions & 1 deletion appengine/standard/app_identity/asserting/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import mock
import webtest

import main


def test_app(testbed):
app = webtest.TestApp(main.app)
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/app_identity/incoming/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import webtest

import main


def test_app(testbed):
app = webtest.TestApp(main.app)
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/app_identity/signing/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import webtest

import main


def test_app(testbed):
app = webtest.TestApp(main.app)
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/appstats/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import webtest

import main


def test_app(testbed):
app = webtest.TestApp(main.app)
Expand Down
4 changes: 2 additions & 2 deletions appengine/standard/background/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main

from mock import patch
import pytest
import webtest

import main


@pytest.fixture
def app(cloud_config, testbed):
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/bigquery/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
import re

from googleapiclient.http import HttpMock
import main
import mock
import pytest
import webtest

import main


@pytest.fixture
def app(cloud_config, testbed):
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/blobstore/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import webtest

import main


def test_app(testbed, login):
app = webtest.TestApp(main.app)
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/cloudsql/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
import os
import re

import main
import pytest
import webtest

import main


@pytest.mark.skipif(
not os.path.exists('/var/run/mysqld/mysqld.sock'),
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/endpoints-frameworks-v2/echo/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
# limitations under the License.

import endpoints
import main
import mock
from protorpc import message_types
import pytest

import main


def test_echo():
api = main.EchoApi()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import mock
from protorpc import message_types

import main


def test_list_greetings(testbed):
api = main.GreetingApi()
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/endpoints/backend/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import mock
from protorpc import message_types

import main


def test_list_greetings(testbed):
api = main.GreetingApi()
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/hello_world/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import webtest

import main


def test_get():
app = webtest.TestApp(main.app)
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/images/api/blobstore_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import blobstore
import mock
import pytest
import webtest

import blobstore


@pytest.fixture
def app(testbed):
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/images/api/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import mock
import pytest
import webtest

import main


@pytest.fixture
def app(testbed):
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/images/guestbook/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import mock
import pytest
import webtest

import main


@pytest.fixture
def app(testbed):
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/logging/reading_logs/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import webtest

import main


def test_app(testbed):
app = webtest.TestApp(main.app)
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/logging/writing_logs/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import main
import webtest

import main


def test_app(testbed):
app = webtest.TestApp(main.app)
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/mail/attachment_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import attachment
import webtest

import attachment


def test_send_mail(testbed):
testbed.init_mail_stub()
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/mail/header_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import header
import webtest

import header


def test_send_mail(testbed):
testbed.init_mail_stub()
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/mail/send_mail_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import send_mail
import webtest

import send_mail


def test_send_mail(testbed):
testbed.init_mail_stub()
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/mail/send_message_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import send_message
import webtest

import send_message


def test_send_message(testbed):
testbed.init_mail_stub()
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/mail/user_signup_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import user_signup
import webtest

import user_signup


def test_user_signup(testbed):
testbed.init_mail_stub()
Expand Down
3 changes: 2 additions & 1 deletion appengine/standard/mailgun/main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@

from googleapiclient.http import HttpMockSequence
import httplib2
import main
import mock
import pytest
import webtest

import main


class HttpMockSequenceWithCredentials(HttpMockSequence):
def add_credentials(self, *args):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import batch

import pytest
import webtest

import batch


@pytest.fixture
def app(testbed):
Expand Down
Loading