Skip to content

Commit 9269d1a

Browse files
committed
Enable flake8.
1 parent 598f893 commit 9269d1a

File tree

15 files changed

+450
-346
lines changed

15 files changed

+450
-346
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ install:
2222

2323
script:
2424
- pipenv install --dev
25+
- pipenv run flake8
2526
- pipenv run py.test -sv --cov-config .coveragerc --cov-report html:skip-covered --cov-report term:skip-covered --cov=testcontainers --tb=short tests/
2627
- codecov
2728

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ verify_ssl = true
44

55
["dev-packages"]
66
codecov = "*"
7+
flake8 = "*"
78

89
[packages]
910
crayons = "*"

Pipfile.lock

Lines changed: 432 additions & 328 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,3 @@
151151
author, 'testcontainers', 'One line description of project.',
152152
'Miscellaneous'),
153153
]
154-
155-
156-

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ universal = 1
33

44
[metadata]
55
description-file = README.md
6+
7+
[flake8]
8+
max-line-length = 100

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
setuptools.setup(
2020
name='testcontainers',
2121
packages=setuptools.find_packages(exclude=['tests']),
22-
version='2.5',
22+
version='2.5.0',
2323
description=('Library provides lightweight, throwaway '
2424
'instances of common databases, '
2525
'Selenium web browsers, or anything else that can '

testcontainers/compose.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def __exit__(self, exc_type, exc_val, exc_tb):
2020

2121
def start(self):
2222
with blindspin.spinner():
23-
subprocess.call(["docker-compose", "-f", self.compose_file_name, "up", "-d"], cwd=self.filepath)
23+
subprocess.call(["docker-compose", "-f", self.compose_file_name, "up", "-d"],
24+
cwd=self.filepath)
2425

2526
def stop(self):
2627
with blindspin.spinner():

testcontainers/general.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
# License for the specific language governing permissions and limitations
1212
# under the License.
1313
from testcontainers.core.container import DockerContainer
14-
from testcontainers.core.waiting_utils import wait_container_is_ready
1514

1615

1716
class TestContainer(DockerContainer):
1817
def __init__(self, image, port_to_expose=None):
19-
super(RedisContainer, self).__init__(image)
18+
super(TestContainer, self).__init__(image)
2019
if port_to_expose:
21-
self.port_to_expose = port_to_expose
22-
self.with_exposed_ports(self.port_to_expose)
20+
self.port_to_expose = port_to_expose
21+
self.with_exposed_ports(self.port_to_expose)

testcontainers/google/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .pubsub import PubSubContainer
1+
from .pubsub import PubSubContainer # noqa

testcontainers/google/pubsub.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1111
# License for the specific language governing permissions and limitations
1212
# under the License.
13-
import os
1413

1514
from ..core.generic import GenericContainer
1615

0 commit comments

Comments
 (0)