Skip to content

Commit 6287132

Browse files
committed
Update CI build & tests
1 parent 960a7d8 commit 6287132

File tree

7 files changed

+50
-24
lines changed

7 files changed

+50
-24
lines changed

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[report]
2+
3+
exclude_lines =
4+
if __name__ == .__main__.:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,6 @@ venv.bak/
107107

108108
# mypy
109109
.mypy_cache/
110+
111+
# pipenv
112+
Pipfile.lock

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
language: python
22
python:
3-
- "3.7"
3+
- "3.10"
44

55
install:
66
- "pip install -r requirements.txt"
7+
- "pip install pytest pytest-mock coverage requests-mock"
78
script:
8-
- pytest tests/*
9+
- coverage run -m pytest
910
after_success:
1011
- coveralls
1112
- coverage xml
12-
- python-codacy-coverage
13+
- bash <(curl -Ls https://coverage.codacy.com/get.sh)

Pipfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
docopt = "*"
8+
requests = "*"
9+
10+
[dev-packages]
11+
pytest = "*"
12+
pytest-mock = "*"
13+
coverage = "*"
14+
requests-mock = "*"
15+
16+
[requires]
17+
python_version = "3.10"

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[![Developed by InQuest](https://inquest.net/images/inquest-badge.svg)](https://inquest.net/)
2+
[![Build Status](https://app.travis-ci.com/InQuest/python-inquestlabs.svg?branch=master)](https://app.travis-ci.com/InQuest/python-inquestlabs)
3+
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9da8a5cde7c34c849c73969ac3281be8)](https://www.codacy.com/gh/InQuest/python-inquestlabs/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=InQuest/python-inquestlabs&amp;utm_campaign=Badge_Grade)
4+
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/9da8a5cde7c34c849c73969ac3281be8)](https://www.codacy.com/gh/InQuest/python-inquestlabs/dashboard?utm_source=github.com&utm_medium=referral&utm_content=InQuest/python-inquestlabs&utm_campaign=Badge_Coverage)
5+
16
# python-inquestlabs
27
A Pythonic interface and command line tool for interacting with the [InQuest Labs](https://labs.inquest.net) API. Note that an API key is *not* required to interact with this API. An API key does provide the ability to increase their lookback, remove rate limitations, and download available samples. Users can sign-in via OAuth to generate API keys. There is no cost to sign-in. Authentication is supported via LinkedIn, Twitter, Google, and Github.
38

requirements.txt

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
atomicwrites==1.3.0
2-
attrs==19.3.0
3-
autopep8==1.4.4
4-
certifi==2019.9.11
5-
chardet==3.0.4
1+
attrs==22.1.0
2+
certifi==2022.9.24
3+
charset-normalizer==2.1.1
4+
coverage==6.5.0
65
docopt==0.6.2
7-
idna==2.8
8-
importlib-metadata==0.23
9-
more-itertools==7.2.0
10-
packaging==19.2
11-
pluggy==0.13.0
12-
py==1.8.0
13-
pycodestyle==2.5.0
14-
pyparsing==2.4.4
15-
pytest==5.2.2
16-
pytest-mock==1.11.2
17-
requests==2.22.0
18-
requests-mock==1.7.0
19-
six==1.13.0
20-
urllib3==1.25.6
21-
wcwidth==0.1.7
22-
zipp==0.6.0
6+
idna==3.4
7+
iniconfig==1.1.1
8+
packaging==21.3
9+
pluggy==1.0.0
10+
py==1.11.0
11+
pyparsing==3.0.9
12+
pytest==7.1.3
13+
pytest-mock==3.9.0
14+
requests==2.28.1
15+
requests-mock==1.10.0
16+
six==1.16.0
17+
tomli==2.0.1
18+
urllib3==1.26.12

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)