Skip to content

Commit 7909a44

Browse files
committed
Add development dependencies
1 parent ab8efe6 commit 7909a44

File tree

6 files changed

+19
-7
lines changed

6 files changed

+19
-7
lines changed

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[flake8]
2+
max_complexity = 10
3+
max-line-length = 120
4+
statistics = True
5+
count = True

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ before_install:
1818
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
1919
install:
2020
- pip install --no-cache-dir --upgrade pip
21-
- pip install -r requirements.txt
21+
- pip install -r requirements-dev.txt
2222
script:
23-
- whereis google-chrome-stable
24-
- whereis chromedriver
2523
- ./run-code-analysis.sh
2624
after_success:
2725
- coveralls

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
> - `python 3.6+`
1111
> - `selenium` and `pom`
1212
> - `pytest`
13+
> - `travis CI`
14+
15+
In addition code is `fully type annotated` and covered with static code analysis tools (`black`, `flake8`).
1316

1417
## Run automated tests
1518
From the root directory of your shell run following commands:
@@ -56,4 +59,5 @@ You can reach out me at:
5659
## Contributing
5760
1. clone the repository
5861
2. configure Git for the first time after cloning with your `name` and `email`
59-
3. `pip install -r requirements.txt` to install all project dependencies
62+
3. `pip install -r requirements.txt` to install all project dependencies
63+
4. `pip install -r requirements-dev.txt` to install all project development dependencies

requirements-dev.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pytest==5.2.2
2+
pytest-cov==2.8.1
3+
pytest-clarity==0.2.0a1
4+
pytest-metadata==1.8
5+
black==19.10b0
6+
coveralls==1.8.2
7+
flake8==3.7.9

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ pytest-cov==2.8.1
44
pytest-metadata==1.8
55
pytest-html==2.0.0
66
pytest-clarity==0.2.0a1
7-
black==19.10b0
8-
coveralls==1.8.2

run-code-analysis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function remove-analysis-trash {
3636
function install-dependencies {
3737
echo "Installing python code analysis packages ..." \
3838
&& ( pip install --no-cache-dir --upgrade pip ) \
39-
&& ( pip install --no-cache-dir -r requirements.txt )
39+
&& ( pip install --no-cache-dir -r requirements-dev.txt )
4040
}
4141

4242

0 commit comments

Comments
 (0)