-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
179 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
type: [ "opened", "reopened", "synchronize" ] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.cache/pre-commit | ||
key: | ||
lint-v1-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/.pre-commit-config.yaml') }} | ||
restore-keys: | | ||
lint-v1- | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install pre-commit | ||
- name: Lint | ||
run: | | ||
pre-commit run --all-files --show-diff-on-failure | ||
env: | ||
PRE_COMMIT_COLOR: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: check-yaml | ||
- id: debug-statements | ||
language_version: python3 | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
language_version: python3 | ||
additional_dependencies: [flake8-typing-imports==1.9.0] | ||
args: [--per-file-ignores=src/gocept/pytestlayer/tests/test_integration.py:E501] | ||
- repo: https://github.com/pre-commit/mirrors-autopep8 | ||
rev: v1.5.4 | ||
hooks: | ||
- id: autopep8 | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.7.0 | ||
hooks: | ||
- id: isort | ||
args: [--filter-files] | ||
files: \.py$ | ||
- repo: local | ||
hooks: | ||
- id: rst | ||
name: rst | ||
entry: rst-lint --encoding utf-8 | ||
exclude: ./doc/* | ||
# We have Sphinx directives in the docs. This cannot be validated | ||
# here. We therefore include two rst-linter. They complement each | ||
# other. This regex matches all *.rst not in the doc/ folder. | ||
files: ^[^(doc)].*rst | ||
language: python | ||
additional_dependencies: [pygments, restructuredtext_lint] | ||
- repo: https://github.com/myint/rstcheck | ||
rev: '' # Use the sha / tag you want to point at | ||
hooks: | ||
- id: rstcheck | ||
args: [--ignore-messages, Duplicate implicit target name ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
Selenese API | ||
------------ | ||
|
||
.. _general-information: | ||
|
||
General information | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
from .util import skipUnlessBrowser # noqa | ||
from .webdriver import Layer as WebdriverLayer # noqa | ||
from .webdriver import WebdriverSeleneseLayer, WebdriverSeleneseTestCase # noqa | ||
from .util import skipUnlessBrowser | ||
from .webdriver import Layer as WebdriverLayer | ||
from .webdriver import WebdriverSeleneseLayer | ||
from .webdriver import WebdriverSeleneseTestCase | ||
|
||
|
||
__all__ = [ | ||
'skipUnlessBrowser', | ||
'WebdriverLayer', | ||
'WebdriverSeleneseLayer', | ||
'WebdriverSeleneseTestCase', | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,3 @@ | |
<grant role="zope.Manager" principal="zope.mgr" /> | ||
|
||
</configure> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.