Skip to content

Commit

Permalink
Merge pull request #54 from rmanganiello/improve-linters-setup-and-fi…
Browse files Browse the repository at this point in the history
…x-code

Improve linters setup and fix code
  • Loading branch information
eltinMeli authored Jan 4, 2022
2 parents e8e1757 + ffed0f3 commit 02ae57d
Show file tree
Hide file tree
Showing 62 changed files with 6,921 additions and 1,137 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/mercado-pago-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7']
python-version: ['3.7', '3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v2
Expand All @@ -28,8 +28,16 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylint pytest requests
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install requests
- name: Lint with Pylint
run: |
pip install pylint
pylint mercadopago
pylint --rcfile=tests/.pylintrc tests
- name: Lint with Isort
run: |
pip install isort
isort .
- name: Test with unittest
run: |
python -m unittest discover tests/
13 changes: 6 additions & 7 deletions docs/config/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />
<meta name="generator" content="pdoc 0.9.2" />
<meta name="generator" content="pdoc 0.10.0" />
<title>mercadopago.config.config API documentation</title>
<meta name="description" content="Module: config" />
<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>
Expand Down Expand Up @@ -32,14 +32,14 @@ <h1 class="title">Module <code>mercadopago.config.config</code></h1>
&#34;&#34;&#34;
import platform

class Config():

class Config:
&#34;&#34;&#34;
General infos of your SDK
&#34;&#34;&#34;

def __init__(self):
self.__version = &#34;2.0.0&#34;
self.__version = &#34;2.0.9&#34;
self.__user_agent = &#34;MercadoPago Python SDK v&#34; + self.__version
self.__product_id = &#34;bc32bpftrpp001u8nhlg&#34;
self.__tracking_id = &#34;platform:&#34; + platform.python_version()
Expand Down Expand Up @@ -117,14 +117,13 @@ <h2 class="section-title" id="header-classes">Classes</h2>
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">class Config():

<pre><code class="python">class Config:
&#34;&#34;&#34;
General infos of your SDK
&#34;&#34;&#34;

def __init__(self):
self.__version = &#34;2.0.0&#34;
self.__version = &#34;2.0.9&#34;
self.__user_agent = &#34;MercadoPago Python SDK v&#34; + self.__version
self.__product_id = &#34;bc32bpftrpp001u8nhlg&#34;
self.__tracking_id = &#34;platform:&#34; + platform.python_version()
Expand Down Expand Up @@ -326,7 +325,7 @@ <h4><code><a title="mercadopago.config.config.Config" href="#mercadopago.config.
</nav>
</main>
<footer id="footer">
<p>Generated by <a href="https://pdoc3.github.io/pdoc"><cite>pdoc</cite> 0.9.2</a>.</p>
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
</footer>
</body>
</html>
Loading

0 comments on commit 02ae57d

Please sign in to comment.