Skip to content

Commit 029019a

Browse files
authored
Merge pull request #92 from spyoungtech/pre-commit
add pre-commit
2 parents 48b1b81 + 08522d7 commit 029019a

38 files changed

+32
-40
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source = behave_webdriver
44

55
[report]
66
exclude_lines =
7-
raise NotImplementedError
7+
raise NotImplementedError

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
tests/features/* linguist-vendored
2-
tests/experimental-features/* linguest-vendored
2+
tests/experimental-features/* linguest-vendored

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace

README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ Assuming you're in the repository root (and have the demo app running) just run
220220
Results ✨
221221
^^^^^^^^^^
222222

223-
.. code-block::
223+
.. code-block::
224224
225225
(behave-webdriver) $ behave examples/selenium-requests/features
226226
@@ -396,4 +396,3 @@ Special thanks to the authors and contributors of `behave`_
396396

397397
.. |coverage| image:: https://coveralls.io/repos/github/spyoungtech/behave-webdriver/badge.svg
398398
:target: https://coveralls.io/github/spyoungtech/behave-webdriver
399-

behave_webdriver/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@
3030
before_scenario_factory)
3131
from behave_webdriver.fixtures import use_fixture_tag
3232
from behave_webdriver import transformers
33-

behave_webdriver/driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,4 +724,3 @@ class Remote(BehaveDriverMixin, webdriver.Remote):
724724
"""
725725
Remote driver class. Alternate constructors and browser-specific logic is implemented here.
726726
"""
727-

behave_webdriver/fixtures.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,3 @@ def use_fixture_tag(context, tag, *args, **kwargs):
167167
transformer_name = tag.split('.')[-1]
168168
transformer_class = getattr(transformers, transformer_name)
169169
use_fixture(transformation_fixture, context, transformer_class, **kwargs)
170-

behave_webdriver/steps/expectations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,4 +331,3 @@ def check_screen_size(context, x, y):
331331

332332

333333
use_step_matcher('parse')
334-

ci/bfcache.reg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Windows Registry Editor Version 5.00
22

33
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE]
4-
"iexplore.exe"=dword:00000000
4+
"iexplore.exe"=dword:00000000

ci/install.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ pip install -r .\requirements.txt
66

77
pip install pytest mock coverage
88

9-
call deactivate
9+
call deactivate

0 commit comments

Comments
 (0)