Init project
This commit is contained in:
commit
c0c08ecfc2
9 changed files with 191 additions and 0 deletions
13
.circleci/config.yml
Normal file
13
.circleci/config.yml
Normal file
|
@ -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
|
127
.gitignore
vendored
Normal file
127
.gitignore
vendored
Normal file
|
@ -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/
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Catfish
|
0
catfish/__init__.py
Normal file
0
catfish/__init__.py
Normal file
9
dev-requirements.txt
Normal file
9
dev-requirements.txt
Normal file
|
@ -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
|
8
scripts/fix.sh
Executable file
8
scripts/fix.sh
Executable file
|
@ -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
|
12
scripts/test.sh
Executable file
12
scripts/test.sh
Executable file
|
@ -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
|
6
setup.cfg
Normal file
6
setup.cfg
Normal file
|
@ -0,0 +1,6 @@
|
|||
[isort]
|
||||
multi_line_output=3
|
||||
include_trailing_comma=True
|
||||
force_grid_wrap=0
|
||||
use_parentheses=True
|
||||
line_length=88
|
15
setup.py
Normal file
15
setup.py
Normal file
|
@ -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"},
|
||||
)
|
Reference in a new issue