From c0c08ecfc2e8bfa875684c4b2c58413c1364a05e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 12 Dec 2018 15:03:22 +0000 Subject: [PATCH] Init project --- .circleci/config.yml | 13 +++++ .gitignore | 127 +++++++++++++++++++++++++++++++++++++++++++ README.md | 1 + catfish/__init__.py | 0 dev-requirements.txt | 9 +++ scripts/fix.sh | 8 +++ scripts/test.sh | 12 ++++ setup.cfg | 6 ++ setup.py | 15 +++++ 9 files changed, 191 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .gitignore create mode 100644 README.md create mode 100644 catfish/__init__.py create mode 100644 dev-requirements.txt create mode 100755 scripts/fix.sh create mode 100755 scripts/test.sh create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..7267bd1 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,13 @@ +version: 2.0 + +jobs: + build: + docker: + - image: circleci/python:latest + working_directory: ~/catfish + steps: + - checkout + - run: python -m venv env + - run: env/bin/pip install -e . + - run: env/bin/pip install -r dev-requirements.txt + - run: ./scripts/test.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..477ef47 --- /dev/null +++ b/.gitignore @@ -0,0 +1,127 @@ + +# Created by https://www.gitignore.io/api/python +# Edit at https://www.gitignore.io/?templates=python + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +### Python Patch ### +.venv/ + +# End of https://www.gitignore.io/api/python + +env/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..2032fe8 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Catfish diff --git a/catfish/__init__.py b/catfish/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dev-requirements.txt b/dev-requirements.txt new file mode 100644 index 0000000..a571314 --- /dev/null +++ b/dev-requirements.txt @@ -0,0 +1,9 @@ +black==18.9b0 +flake8==3.6.0 +flake8-comprehensions==1.4.1 +flake8-mutable==1.2.0 +flake8-print==3.1.0 +flake8-tuple==0.2.13 +isort==4.3.4 +mypy==0.641 +nose2==0.8.0 diff --git a/scripts/fix.sh b/scripts/fix.sh new file mode 100755 index 0000000..f14d8cd --- /dev/null +++ b/scripts/fix.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e + +export PATH=env/bin:${PATH} + +black setup.py catfish tests +isort -rc setup.py catfish tests diff --git a/scripts/test.sh b/scripts/test.sh new file mode 100755 index 0000000..0c12b1c --- /dev/null +++ b/scripts/test.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +set -e + +export PATH=env/bin:${PATH} + +nose2 $@ -C --coverage catfish --verbose + +black catfish tests setup.py --check +flake8 catfish tests setup.py --ignore=E128,E501 +isort -rc -c catfish tests setup.py +mypy --strict-optional catfish diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..9eea40a --- /dev/null +++ b/setup.cfg @@ -0,0 +1,6 @@ +[isort] +multi_line_output=3 +include_trailing_comma=True +force_grid_wrap=0 +use_parentheses=True +line_length=88 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b60cc50 --- /dev/null +++ b/setup.py @@ -0,0 +1,15 @@ +from setuptools import setup + +setup( + name="catfish", + version="0.0.0", + url="https://github.com/realorangeone/catfish", + license="MIT", + author="Jake Howard", + description="Catfish", + packages=["catfish"], + include_package_data=True, + zip_safe=False, + pathon_requires=">=3.6", + project_urls={"GitHub: Issues": "https://github.com/realorangeone/catfish/issues"}, +)