File tree 3 files changed +36
-13
lines changed
3 files changed +36
-13
lines changed Original file line number Diff line number Diff line change 9
9
before_install : skip
10
10
addons : skip
11
11
env : TOXENV=linting
12
+ cache :
13
+ directories :
14
+ - $HOME/.cache/pre-commit
12
15
13
16
-
14
17
name : Docs
Original file line number Diff line number Diff line change 1
1
Development
2
2
===========
3
3
4
+ To contribute to `pytest-selenium ` you can use `Pipenv `_ to manage
5
+ a python virutal environment and `pre-commit <https://pre-commit.com/ >`_ to help you with
6
+ styling and formatting.
7
+
8
+ To setup the virtual environment and pre-commit, run:
9
+
10
+ .. code-block :: bash
11
+
12
+ $ pipenv install --dev
13
+ $ pipenv run pre-commit install
14
+
15
+ If you're not using `Pipenv `_, to install `pre-commit `, run:
16
+
17
+ .. code-block :: bash
18
+
19
+ $ pip install pre-commit
20
+ $ pre-commit install
21
+
22
+
4
23
Automated Testing
5
24
-----------------
6
25
@@ -14,11 +33,22 @@ not, you can find it on the
14
33
The only way to trigger Travis CI to run again for a pull request, is to submit
15
34
another change to the pull branch.
16
35
36
+ You can do this with `git commit --allow-empty `
37
+
17
38
Running Tests
18
39
-------------
19
40
20
41
You will need `Tox <http://tox.testrun.org/ >`_ installed to run the tests
21
- against the supported Python versions.
42
+ against the supported Python versions. If you're using `Pipenv `_ it will be
43
+ installed for you.
44
+
45
+ With `Pipenv `_, run:
46
+
47
+ .. code-block :: bash
48
+
49
+ $ pipenv run tox
50
+
51
+ Otherwise, to install and run, do:
22
52
23
53
.. code-block :: bash
24
54
@@ -74,3 +104,5 @@ Follow these steps to release a new version of the project:
74
104
6. Tag the release with the new release version (``git tag v<new tag> ``)
75
105
7. Push the tag (``git push upstream --tags ``)
76
106
8. Done. You can monitor the progress on `Travis <https://travis-ci.org/pytest-dev/pytest-selenium/ >`_
107
+
108
+ .. _Pipenv : https://docs.pipenv.org/en/latest/
Original file line number Diff line number Diff line change @@ -28,18 +28,6 @@ basepython = python3
28
28
deps = pre-commit
29
29
commands = pre-commit run --all-files --show-diff-on-failure
30
30
31
- [testenv:flake8]
32
- skip_install = true
33
- basepython = python
34
- deps = flake8
35
- commands = flake8 {posargs:.}
36
-
37
- [testenv:black]
38
- skip_install = true
39
- basepython = python
40
- deps = black
41
- commands = black --check {posargs:.}
42
-
43
31
[flake8]
44
32
max-line-length = 88
45
33
exclude = .eggs,.tox,docs
You can’t perform that action at this time.
0 commit comments