Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Tried to package up to command line tool
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmundGoodman committed Oct 30, 2021
1 parent 737581d commit 9600d98
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 49 deletions.
2 changes: 1 addition & 1 deletion jupylint/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from .jupylint import Jupylint
from .jupylint import Jupylint, OldJupyterVersionError, main
6 changes: 6 additions & 0 deletions jupylint/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from .jupylint import main

main()
3 changes: 1 addition & 2 deletions jupylint/_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
"""

from subprocess import check_output, CalledProcessError, STDOUT
from json.decoder import JSONDecodeError
from os import path
import unittest

from .jupylint import Jupylint, OldJupyterVersionError
from .jupylint import Jupylint


class TestJupylint(unittest.TestCase):
Expand Down
3 changes: 2 additions & 1 deletion jupylint/jupylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ def run():
remove(args["out_file_name"])


if __name__ == "__main__":
def main():
"""External run hook"""
Jupylint.run()
7 changes: 7 additions & 0 deletions jupylint_runner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from jupylint.jupylint import main

if __name__ == "__main__":
main()
42 changes: 0 additions & 42 deletions out.py

This file was deleted.

7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@

setup(
name = 'jupylint',
version = '1.0.1',
version = '1.1.0',
license='MIT',
description = 'A tool to run pylint on Jupyter notebooks',
long_description=long_description,
long_description_content_type="text/markdown",
author = 'Edmund Goodman',
author_email = 'egoodman3141@gmail.com',
url = 'https://github.com/EdmundGoodman/Jupyter_Pylinter',
download_url = 'https://github.com/EdmundGoodman/Jupyter_Pylinter/archive/refs/tags/v1.0.1.tar.gz',
download_url = 'https://github.com/EdmundGoodman/Jupyter_Pylinter/archive/refs/tags/v1.1.0.tar.gz',
packages=find_packages(),
entry_points = {
"console_scripts": ['jupylint = jupylint.jupylint:main']
},
keywords = ['Jupyter', 'Pylint', 'linter'],
install_requires = ['pylint'],
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Edmund Goodman'

# The full version, including alpha/beta/rc tags
release = '1.0.1'
release = '1.1.0'


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 9600d98

Please sign in to comment.