Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 9a481ba

Browse files
Merge pull request #8 from applitools/develop
Merge develop to master
2 parents bfdd81c + 02a0552 commit 9a481ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+4625
-2706
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ tag = True
88
[bumpversion:file:eyes_images/applitools/images/__version__.py]
99

1010
[bumpversion:file:eyes_selenium/applitools/eyes_selenium/__version__.py]
11-

.editorconfig

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ charset = utf-8
1414
[*.{py,rst,ini}]
1515
indent_style = space
1616
indent_size = 4
17-
max_line_length = 119
18-
19-
[*.py]
20-
max_line_length = 119
17+
max_line_length = 88
2118

2219
[*.rst]
2320
max_line_length = off

.pre-commit-config.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: 18.9b0
4+
hooks:
5+
- id: black
6+
language_version: python3.7
7+
# override until resolved: https://github.com/ambv/black/issues/402
8+
files: \.pyi?$
9+
types: []
10+
11+
- repo: https://gitlab.com/pycqa/flake8
12+
rev: '3.7.3'
13+
hooks:
14+
- id: flake8
15+
language_version: python3.7
16+
17+
- repo: https://github.com/asottile/seed-isort-config
18+
rev: v1.5.0
19+
hooks:
20+
- id: seed-isort-config
21+
22+
- repo: https://github.com/pre-commit/mirrors-isort
23+
rev: v4.3.4
24+
hooks:
25+
- id: isort
26+
language_version: python3.7
27+
28+
- repo: https://github.com/pre-commit/pre-commit-hooks
29+
rev: v2.1.0
30+
hooks:
31+
- id: trailing-whitespace
32+
- id: end-of-file-fixer
33+
- id: debug-statements
34+
- id: mixed-line-ending
35+
fix: lr

.travis.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
language: python
2+
addons:
3+
apt:
4+
sources:
5+
- google-chrome
6+
packages:
7+
- google-chrome-stable
28
matrix:
39
include:
10+
- python: 2.7
11+
env:
12+
- TOX_ENV=core
13+
- python: 3.5
14+
env:
15+
- TOX_ENV=core
416
- python: 2.7
517
env:
618
- TOX_ENV=images
@@ -13,13 +25,28 @@ matrix:
1325
- python: 3.6
1426
env:
1527
- TOX_ENV=integration
28+
- python: 2.7
29+
env:
30+
- TOX_ENV=selenium
31+
- python: 3.6
32+
env:
33+
- TOX_ENV=selenium
34+
- python: 3.6
35+
env:
36+
- TOX_ENV=selenium-appium
1637
- python: 3.6
1738
env:
1839
- TOX_ENV=lint
1940
install:
20-
- pip install -U tox
41+
- npm install -g webdriver-manager
42+
- webdriver-manager update
43+
- pip install -U tox
2144
before_script:
22-
- export APPLITOOLS_BATCH_ID=`uuidgen -t`
23-
- echo $APPLITOOLS_BATCH_ID
45+
- export DISPLAY=:99.0
46+
- sh -e /etc/init.d/xvfb start
47+
- nohup webdriver-manager start --logging=ERROR &
48+
- sleep 10 # give webdriver some time to start
2449
script:
25-
- tox -e $TOX_ENV
50+
- export APPLITOOLS_BATCH_ID=`uuidgen -t`
51+
- echo $APPLITOOLS_BATCH_ID
52+
- tox -e $TOX_ENV

README.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|Build Status|
1+
|Build Status| |Black Formatter|
22

33
Eyes.Sdk.Python
44
===============
@@ -23,6 +23,8 @@ Please check the applitools website for usage instructions:
2323
- Python Image SDK example:
2424
https://applitools.com/tutorials/screenshots-python.html
2525

26+
.. |Black Formatter| image:: https://img.shields.io/badge/code%20style-black-000000.svg
27+
:target: https://github.com/ambv/black
2628
.. |Build Status| image:: https://travis-ci.org/applitools/eyes.sdk.python.svg?branch=master
2729
:target: https://travis-ci.org/applitools/eyes.sdk.python
2830

@@ -32,7 +34,7 @@ Development
3234

3335
For smother development experience install Invoke for task run first
3436

35-
::
37+
::
3638

3739
pip install invoke
3840
inv install-requirements # install libs required for development
@@ -41,13 +43,25 @@ For smother development experience install Invoke for task run first
4143
inv dist -core # publish eyes_core to test.pypi.org
4244
inv dist -core -prod # publish eyes_core to pypi.org
4345

46+
Install pre-commit hook
47+
***********************
48+
We're using `pre-commit <https://github.com/pre-commit/pre-commit>`_ for check and format code before commit. For
49+
manage hooks you could use invoke:
50+
51+
::
52+
53+
# installing of git hooks
54+
inv install-precommit-hook
55+
# removing of git hooks
56+
inv remove-precommit-hook
57+
4458

4559
Testing
4660
-------
4761

4862
For local testing, for example, images sdk
4963

5064
::
51-
65+
5266
inv install-packages -core -images
5367
inv test-run -images

eyes_core/applitools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

eyes_core/applitools/core/__init__.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,23 @@
77
from .scaling import * # noqa
88
from .eyes_base import * # noqa
99
from .geometry import * # noqa
10-
from .agent_connector import AgentConnector # noqa
10+
from .server_connector import ServerConnector # noqa
1111
from .positioning import * # noqa
1212
from .match import * # noqa
1313
from .metadata import * # noqa
1414

15-
__all__ = (triggers.__all__ + # noqa
16-
test_results.__all__ + # noqa
17-
match_window_task.__all__ + # noqa
18-
logger.__all__ + # noqa
19-
errors.__all__ + # noqa
20-
scaling.__all__ + # noqa
21-
capture.__all__ + # noqa
22-
eyes_base.__all__ + # noqa
23-
geometry.__all__ + # noqa
24-
positioning.__all__ + # noqa
25-
match.__all__ + # noqa
26-
metadata.__all__ + # noqa
27-
('logger', 'AgentConnector'))
15+
__all__ = (
16+
triggers.__all__ # noqa
17+
+ test_results.__all__ # noqa
18+
+ match_window_task.__all__ # noqa
19+
+ logger.__all__ # noqa
20+
+ errors.__all__ # noqa
21+
+ scaling.__all__ # noqa
22+
+ capture.__all__ # noqa
23+
+ eyes_base.__all__ # noqa
24+
+ geometry.__all__ # noqa
25+
+ positioning.__all__ # noqa
26+
+ match.__all__ # noqa
27+
+ metadata.__all__ # noqa
28+
+ ("logger", "ServerConnector") # noqa
29+
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.15.4'
1+
__version__ = "3.15.4"

eyes_core/applitools/core/agent_connector.py

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)