A continuous integration tool for Python static analysis
Project description
bugcatcher-ci
Continuous Integration Tool Assisting in Static Code Analysis Facilitated Through BugCatcher by Faster Than Light
Installation
Installing with PIP
pip install bugcatcher-ci
Sample Integration
Please view the changed files in this PR. Setting up your testing is as easy as following this example and making sure you have an environment variable saved on CircleCI/TravisCI for FTL_SID
. Your FTL_SID
can be found on the dashboard of your BugCatcher account at https://bugcatcher.fasterthanlight.dev
Example of a test run using BugCatcher-CI:
% pytest -s
=============================================================== test session starts ===============================================================
platform darwin -- Python 3.8.0, pytest-5.2.2, py-1.8.0, pluggy-0.13.0
rootdir: /sampleproject
plugins: bugcatcher-0.1.6
collected 2 items
tests/test_simple.py
Testing codebase with BugCatcher API...
Uploading "sampleproject" code to BugCatcher...
Found a `.gitignore` file. Evaluating files...
6 of 20 local files match .gitignore patterns.
14 files ready to upload...
Local item MANIFEST.in
Local item README.md
Local item setup.py
Local item .gitignore
Local item tox.ini
Local item setup.cfg
Local item LICENSE.txt
Local item .travis.yml
Local item tests/test_simple.py
Local item tests/__init__.py
Local item sample/__init__.py
Local item sample/package_data.dat
Local item data/data_file
Local item .circleci/config.yml
Sending new files:
.circleci/config.yml
.gitignore
.travis.yml
LICENSE.txt
MANIFEST.in
README.md
data/data_file
sample/__init__.py
sample/package_data.dat
setup.cfg
setup.py
tests/__init__.py
tests/test_simple.py
tox.ini
14 items total changed
Running tests on "sampleproject" using BugCatcher...
BugCatcher results for "sampleproject":
Severity: low ===> tests/test_simple.py (lines 15-15)
assert_used - Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Severity: low ===> tests/test_simple.py (lines 17-17)
assert_used - Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Severity: low ===> tests/test_simple.py (lines 21-21)
assert_used - Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Minimum Severity Level to FAIL tests: "medium"
PASSING! - All results are less than "medium" level severity.
..
=============================================================== 2 passed in 34.72s ================================================================
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file bugcatcher-ci-0.1.9.tar.gz
.
File metadata
- Download URL: bugcatcher-ci-0.1.9.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe6fd946888af19e4575f3618956e0308af919552b71720baa85e86bd03cba7c |
|
MD5 | c8fe2fcf4774fd28b04ddf883b44a07a |
|
BLAKE2b-256 | 8b3986c66a3ba9f6ac1d5b0355392787df63736d9f73770b30d18cae5c48257d |
File details
Details for the file bugcatcher_ci-0.1.9-py2.py3-none-any.whl
.
File metadata
- Download URL: bugcatcher_ci-0.1.9-py2.py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8c5db3f867d8e99bfca2d1b8ba1450d1944e1bfa0e51b21adfe133540c81238 |
|
MD5 | 3417fd33a4c289741673c4d554eb0bc1 |
|
BLAKE2b-256 | 4a23eb500b57879d9a050e48e030449346f17669ffebcf01bf78fea2da0879a0 |