Skip to content

Commit e281f7b

Browse files
authored
Merge pull request #223 from Davi0kProgramsThings/master
Merge branch `Davi0kProgramsThings:master` into branch `bitfinexcom:master`.
2 parents 0079580 + 62db74c commit e281f7b

File tree

143 files changed

+5424
-8030
lines changed

Some content is hidden

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

143 files changed

+5424
-8030
lines changed

.github/ISSUE_TEMPLATE

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## I'm submitting a...
2+
3+
- [ ] bug report;
4+
- [ ] feature request;
5+
- [ ] documentation change;
6+
7+
## What is the expected behaviour?
8+
<!--- Describe the expected behaviour in details -->
9+
10+
## What is the current behaviour?
11+
<!--- Describe the current behaviour in details -->
12+
13+
## Possible solution (optional)
14+
<!-- If you have a solution proposal, please explain it here -->
15+
<!-- If your solution includes implementation, you should also open a PR with this as related issue -->
16+
<!-- You can delete this section if you don't want to suggest a possible solution -->
17+
18+
A possible solution could be...
19+
20+
## Steps to reproduce (for bugs)
21+
<!-- You can delete this section if you are not submitting a bug report -->
22+
23+
1. &nbsp;
24+
2. &nbsp;
25+
3. &nbsp;
26+
27+
### Python version
28+
<!-- Indicate your python version here -->
29+
<!-- You can print it using `python3 --version`-->
30+
Python 3.10.6 x64
31+
32+
### Mypy version
33+
<!-- Indicate your mypy version here -->
34+
<!-- You can print it using `python3 -m mypy --version`-->
35+
mypy 0.991 (compiled: yes)

.github/PULL_REQUEST_TEMPLATE

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Description
2+
<!--- Describe your changes in detail -->
3+
4+
## Motivation and Context
5+
<!--- Why is this change required? What problem does it solve? -->
6+
7+
## Related Issue
8+
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
9+
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
10+
<!--- Please link to the issue here: -->
11+
PR fixes the following issue:
12+
13+
## Type of change
14+
<!-- Select the most suitable choice and remove the others from the checklist -->
15+
16+
- [ ] Bug fix (non-breaking change which fixes an issue);
17+
- [ ] New feature (non-breaking change which adds functionality);
18+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected);
19+
- [ ] This change requires a documentation update;
20+
21+
# Checklist:
22+
23+
- [ ] My code follows the style guidelines of this project;
24+
- [ ] I have performed a self-review of my code;
25+
- [ ] I have commented my code, particularly in hard-to-understand areas;
26+
- [ ] I have made corresponding changes to the documentation;
27+
- [ ] My changes generate no new warnings;
28+
- [ ] I have added tests that prove my fix is effective or that my feature works;
29+
- [ ] New and existing unit tests pass locally with my changes;
30+
- [ ] Mypy returns no errors or warnings when run on the root package;
31+
- [ ] Pylint returns a score of 10.00/10.00 when run on the root package;
32+
- [ ] I have updated the library version and updated the CHANGELOG;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: bitfinex-api-py-ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python 3.8
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.8'
24+
- name: Install bitfinex-api-py's dependencies
25+
run: python -m pip install -r dev-requirements.txt
26+
- name: Lint the project with pylint (and fail if score is lower than 10.00/10.00)
27+
run: python -m pylint bfxapi
28+
- name: Run mypy to check the correctness of type hinting (and fail if any error or warning is found)
29+
run: python -m mypy bfxapi
30+
- name: Execute project's unit tests (unittest)
31+
run: python -m unittest bfxapi.tests

.github/workflows/python-app.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.gitignore

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
__pycache__
2-
*.pyc
3-
.vscode
4-
*.log
5-
dist
6-
bitfinex_api_py.egg-info
1+
.vscode
2+
*.pyc
3+
*.log
4+
5+
bitfinex_api_py.egg-info
6+
7+
__pycache__
8+
9+
dist
10+
venv
11+
!.gitkeep
12+
MANIFEST

.pylintrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[MAIN]
2+
py-version=3.8.0
3+
4+
[MESSAGES CONTROL]
5+
disable=
6+
multiple-imports,
7+
missing-docstring,
8+
logging-not-lazy,
9+
logging-fstring-interpolation,
10+
too-few-public-methods,
11+
too-many-public-methods,
12+
too-many-instance-attributes,
13+
dangerous-default-value,
14+
inconsistent-return-statements,
15+
16+
[SIMILARITIES]
17+
min-similarity-lines=6
18+
19+
[VARIABLES]
20+
allowed-redefined-builtins=type,dir,id,all,format,len
21+
22+
[FORMAT]
23+
max-line-length=120
24+
expected-line-ending-format=LF
25+
26+
[BASIC]
27+
good-names=id,on,pl,t,ip,tf,A,B,C,D,E,F
28+
29+
[TYPECHECK]
30+
generated-members=websockets
31+
32+
[STRING]
33+
check-quote-consistency=yes

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
language: python
22
python:
3-
- "3.8.2"
3+
- "3.8.0"
4+
before_install:
5+
- python -m pip install --upgrade pip
46
install:
5-
- python3.8 -m pip install -r requirements.txt
7+
- pip install -r dev-requirements.txt
68
script:
7-
- pylint --rcfile=pylint.rc bfxapi
8-
- pytest
9+
- python -m pylint bfxapi
10+
- python -m mypy bfxapi
11+
- python -m unittest bfxapi.tests

0 commit comments

Comments
 (0)