Skip to content

Commit

Permalink
Better lint
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed May 3, 2024
1 parent 339eeea commit f622a0c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Linting
run: |
. venv/bin/activate
pylint main.py
make cilint
- name: Install Python dependencies
run: |
. venv/bin/activate
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ pub:
twine check dist/*
twine upload -u __token__ --repository-url https://upload.pypi.org/legacy/ --verbose dist/*

lint:
cilint:
pylint setup.py
pylint main.py
pylint r2ai/*.py
pylint r2ai/bubble.py

lint:
pylint *.py r2ai/*.py
26 changes: 14 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
"""The classic setuptools python file."""

from setuptools import setup
import r2ai

with open("README.md") as fd:
with open("README.md", encoding = "utf-8") as fd:
readme = fd.read()

setup(
name='r2ai',
version=r2ai.VERSION,
description="Applying language models on radare2 for reverse engineering and fun purposes",
long_description=readme,
long_description_content_type="text/markdown",
author="pancake",
author_email="[email protected]",
url="https://www.radare.org/",
packages=[
name ='r2ai',
version = r2ai.VERSION,
description = "Applying language models on radare2 for reverse engineering and fun purposes",
long_description = readme,
long_description_content_type = "text/markdown",
author = "pancake",
author_email = "[email protected]",
url = "https://www.radare.org/",
packages = [
'r2ai',
],
install_requires=[
install_requires = [
'rich',
'r2pipe',
'inquirer',
Expand All @@ -33,5 +35,5 @@
'console_scripts': [
'r2ai = r2ai.main:main'
]
},
}
)

0 comments on commit f622a0c

Please sign in to comment.