Skip to content

Commit

Permalink
change from pylint to ruff for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chapimenge3 committed Mar 18, 2024
1 parent 55ed8a1 commit 0fcb37a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/Linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -21,9 +21,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install ruff
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint chapa/*
ruff check
4 changes: 2 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.10

- name: Version the package
run: |
Expand Down
14 changes: 12 additions & 2 deletions chapa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,15 @@
PyPI: https://pypi.org/project/Chapa/
"""

from .api import *
from .webhook import *
from .api import Chapa, AsyncChapa, get_testing_cards, get_testing_mobile
from .webhook import verify_webhook, WEBHOOK_EVENTS, WEBHOOKS_EVENT_DESCRIPTION

__all__ = [
'Chapa',
'AsyncChapa',
'get_testing_cards',
'get_testing_mobile',
'verify_webhook',
'WEBHOOK_EVENTS',
'WEBHOOKS_EVENT_DESCRIPTION'
]
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from ensurepip import version
import setuptools
import os

with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()

version = os.environ.get('CHAPA_VERSION', '0.1.0')
version_number = os.environ.get('CHAPA_VERSION', '0.1.0')

setuptools.setup(
name='chapa',
version=version,
version=version_number,
author='Temkin Mengistu (Chapi)',
author_email='chapimenge3@gmail.com',
description='Python SDK for Chapa API https://developer.chapa.co',
Expand Down

0 comments on commit 0fcb37a

Please sign in to comment.