Skip to content

Commit cebdc72

Browse files
authored
Merge pull request #7 from alexpdev/docs
Bump Version 0.2.7
2 parents 064e179 + a1e8d30 commit cebdc72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+8226
-12991
lines changed

.deepsource.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
version = 1
22

3+
test_patterns = [
4+
"tests/**",
5+
"tests/*.py",
6+
]
7+
38
[[analyzers]]
49
name = "python"
510
enabled = true
611

712
[analyzers.meta]
8-
runtime_version = "3.x.x"
13+
runtime_version = "3.x.x"
14+
15+
[[analyzers]]
16+
name = "test-coverage"
17+
enabled = true
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Workflow for python project
1+
name: CI
22

33
on: [push, pull_request]
44
jobs:
@@ -15,8 +15,8 @@ jobs:
1515
run: |
1616
python -m pip install --upgrade pip
1717
pip install coverage pytest toml pylint pycodestyle pydocstyle
18-
pip install pytest-cov pytest-pylint
19-
pytest --cov --pylint tests
18+
pip install pytest-cov pytest-pylint pytest-randomly
19+
pytest --cov=tests --cov=pyben --pylint tests
2020
pycodestyle pyben tests
2121
pydocstyle pyben tests
2222

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ autorun.bat
44
__pycache__/
55
*.py[cod]
66
*$py.class
7-
site/
87
# Prerequisites
98
*.d
109

@@ -156,9 +155,6 @@ venv.bak/
156155
# Rope project settings
157156
.ropeproject
158157

159-
# mkdocs documentation
160-
/site
161-
162158
# mypy
163159
.mypy_cache/
164160
.dmypy.json

.prospector.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ doc-warnings: true
44
test-warnings: true
55
member-warnings: true
66

7+
bandit:
8+
run: true
9+
options:
10+
config: pyproject.toml
11+
712
pep257:
813
run: true
914
disable:
@@ -18,16 +23,13 @@ pep8:
1823
pylint:
1924
run: true
2025

21-
bandit:
22-
run: true
23-
2426
pyroma:
2527
run: true
2628

2729
pyflakes:
2830
run: true
2931

3032
mccabe:
31-
run: false
33+
run: true
3234
disable:
33-
-MC0001
35+
- MC0001

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ confidence=
5252
# no Warning level messages displayed, use"--disable=all --enable=classes
5353
# --disable=W"
5454
# disable=import-error,print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,long-suffix,old-ne-operator,old-octal-literal,import-star-module-level,raw-checker-failed,bad-inline-option,locally-disabled,locally-enabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,eq-without-hash,div-method,idiv-method,rdiv-method,exception-message-attribute,invalid-str-codec,sys-max-int,bad-python3-import,deprecated-string-function,deprecated-str-translate-call
55-
disable=too-many-instance-attributes,too-few-public-methods,too-many-arguments,redefined-outer-name,invalid-name,unspecified-encoding, protected-access
55+
disable=too-many-instance-attributes,too-few-public-methods,too-many-arguments,redefined-outer-name,invalid-name,unspecified-encoding,protected-access,import-outside-toplevel
5656

5757
# Enable the message, report, category or checker with the given id(s). You can
5858
# either give multiple identifier separated by comma (,) or put this option

MANIFEST.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ include README.md
33
include .pylintrc
44
include .prospector.yml
55
include mkdocs.yml
6+
include Makefile
7+
include pyproject.toml
68

79
recursive-include pyben *
810
recursive-include tests *
911
recursive-include assets *
1012
recursive-include .github *
1113
recursive-exclude * __pycache__
1214
recursive-exclude * *.py[cod]
13-
recursive-include docs *
14-
recursive-exclude site *
15+
recursive-exclude docs *
16+
recursive-include site *
1517

16-
recursive-include Makefile make.bat *.jpg *.png *.gif *.json *.md *.ico
18+
recursive-include *.jpg *.png *.gif *.json *.md *.ico

Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ clean-build: ## remove build artifacts
3232
rm -fr build/
3333
rm -fr dist/
3434
rm -fr .eggs/
35+
rm -fr **/.pytest_cache
3536
rm -fr *.egg-info
3637
rm -fr *.egg
3738
rm -f **.pyc
@@ -51,11 +52,6 @@ lint: ## check style with flake8
5152
black tests
5253
isort pyben
5354
isort tests
54-
pylint pyben tests
55-
pycodestyle pyben tests
56-
pydocstyle pyben tests
57-
pyroma .
58-
bandit pyben/*
5955
prospector pyben
6056
prospector tests
6157

@@ -65,7 +61,7 @@ test: ## run tests quickly with the default Python
6561
push: lint docs clean test
6662
git add .
6763
git commit -m "$m"
68-
git push -u origin dev
64+
git push
6965
coverage run --source pyben -m pytest tests
7066
coverage xml -o coverage.xml
7167
bash codacy.sh report -r coverage.xml

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ Pyben Enables fast and easy encoding and decoding of bencoded data.
55

66
![PyBen](./assets/pyben.png)
77

8-
![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/pyben)
8+
---------
9+
10+
![GitHub repo size](https://img.shields.io/github/repo-size/alexpdev/pyben&style=flat-square)
911
![GitHub contributors](https://img.shields.io/github/license/alexpdev/pyben)
10-
![GitHub stars](https://img.shields.io/badge/rating-99-green)
12+
![PyPI - Downloads](https://img.shields.io/pypi/dm/pyben?color=%23CC3919&label=PyPi%20Downloads&logo=PyPi&logoColor=cyan&style=flat-square)
1113
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/af86338dcf0a4a899228df470d20e894)](https://www.codacy.com/gh/alexpdev/pyben/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/pyben&utm_campaign=Badge_Grade)
1214
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/af86338dcf0a4a899228df470d20e894)](https://www.codacy.com/gh/alexpdev/pyben/dashboard?utm_source=github.com&utm_medium=referral&utm_content=alexpdev/pyben&utm_campaign=Badge_Coverage)
1315
[![codecov](https://codecov.io/gh/alexpdev/pyben/branch/master/graph/badge.svg?token=N6TCUUQ6CJ)](https://codecov.io/gh/alexpdev/pyben)

0 commit comments

Comments
 (0)