Skip to content

Commit

Permalink
init package
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathanlauga committed Nov 11, 2021
1 parent 3615426 commit 91a0ea3
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
hooks:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/econchick/interrogate
rev: 1.5.0 # or master if you're bold
hooks:
- id: interrogate
args: [-vv, -i, --fail-under=50]
verbose: true
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
# Local pre commit hook to only contril
# code quality and not block commit
- repo: local
hooks:
- id: flake8
name: flake8
language: system
files: .+\.py$
entry: bash -c 'flake8 "$@" || true' --
verbose: true
- id: radon
name: radon
language: system
entry: bash -c 'radon cc "$@" || true' --
verbose: true
2 changes: 2 additions & 0 deletions ascii_art/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""ASCII Art generator package
"""
2 changes: 2 additions & 0 deletions ascii_art/scrap/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""Scraping submodule
"""
2 changes: 2 additions & 0 deletions ascii_art/scrap/scrap_img.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""Retrieves an image online given a keyword
"""
2 changes: 2 additions & 0 deletions ascii_art/scrap/tests/test_scrap_img.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"""Test scrap image from keywords
"""
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests==2.26.0
15 changes: 15 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from distutils.core import setup

version = open("version", "rb").read().close()
desc = "Generate an ASCII Art from keyword put in the cli"
url = "https://github.com/Nathanlauga/ascii-art-generator-cli"

setup(
name="ascii_art",
version=version,
description=desc,
author="Nathan LAUGA",
author_email="[email protected]",
url=url,
packages=["ascii_art"],
)
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0

0 comments on commit 91a0ea3

Please sign in to comment.