Skip to content

Commit 02ae57d

Browse files
authored
Merge pull request #54 from rmanganiello/improve-linters-setup-and-fix-code
Improve linters setup and fix code
2 parents e8e1757 + ffed0f3 commit 02ae57d

Some content is hidden

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

62 files changed

+6921
-1137
lines changed

.github/workflows/mercado-pago-package.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ['3.7']
20+
python-version: ['3.7', '3.8', '3.9', '3.10']
2121

2222
steps:
2323
- uses: actions/checkout@v2
@@ -28,8 +28,16 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
python -m pip install pylint pytest requests
32-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31+
python -m pip install requests
32+
- name: Lint with Pylint
33+
run: |
34+
pip install pylint
35+
pylint mercadopago
36+
pylint --rcfile=tests/.pylintrc tests
37+
- name: Lint with Isort
38+
run: |
39+
pip install isort
40+
isort .
3341
- name: Test with unittest
3442
run: |
3543
python -m unittest discover tests/

docs/config/config.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
6-
<meta name="generator" content="pdoc 0.9.2" />
6+
<meta name="generator" content="pdoc 0.10.0" />
77
<title>mercadopago.config.config API documentation</title>
88
<meta name="description" content="Module: config" />
99
<link rel="preload stylesheet" as="style" href="https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css" integrity="sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=" crossorigin>
@@ -32,14 +32,14 @@ <h1 class="title">Module <code>mercadopago.config.config</code></h1>
3232
&#34;&#34;&#34;
3333
import platform
3434

35-
class Config():
3635

36+
class Config:
3737
&#34;&#34;&#34;
3838
General infos of your SDK
3939
&#34;&#34;&#34;
4040

4141
def __init__(self):
42-
self.__version = &#34;2.0.0&#34;
42+
self.__version = &#34;2.0.9&#34;
4343
self.__user_agent = &#34;MercadoPago Python SDK v&#34; + self.__version
4444
self.__product_id = &#34;bc32bpftrpp001u8nhlg&#34;
4545
self.__tracking_id = &#34;platform:&#34; + platform.python_version()
@@ -117,14 +117,13 @@ <h2 class="section-title" id="header-classes">Classes</h2>
117117
<summary>
118118
<span>Expand source code</span>
119119
</summary>
120-
<pre><code class="python">class Config():
121-
120+
<pre><code class="python">class Config:
122121
&#34;&#34;&#34;
123122
General infos of your SDK
124123
&#34;&#34;&#34;
125124

126125
def __init__(self):
127-
self.__version = &#34;2.0.0&#34;
126+
self.__version = &#34;2.0.9&#34;
128127
self.__user_agent = &#34;MercadoPago Python SDK v&#34; + self.__version
129128
self.__product_id = &#34;bc32bpftrpp001u8nhlg&#34;
130129
self.__tracking_id = &#34;platform:&#34; + platform.python_version()
@@ -326,7 +325,7 @@ <h4><code><a title="mercadopago.config.config.Config" href="#mercadopago.config.
326325
</nav>
327326
</main>
328327
<footer id="footer">
329-
<p>Generated by <a href="https://pdoc3.github.io/pdoc"><cite>pdoc</cite> 0.9.2</a>.</p>
328+
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
330329
</footer>
331330
</body>
332331
</html>

0 commit comments

Comments
 (0)