Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jesuejunior committed Jun 21, 2020
0 parents commit 29794d4
Show file tree
Hide file tree
Showing 6 changed files with 275 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Extensions
*.pyc
/.git
*.swp
*.swo
.DS_Store
*.sqlite3
.idea
*.md
*.log
*.tgz

# files
README.md
docker-compose.yml

# folders
dist/
build/
brandenburg.egg-info/
.mypy_cache/
.pytest_cache
.circleci/
.coverage
out
**/out
.serverless
tests/*
test
*.*.*.test*
.cache
__pycache__

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
develop-eggs
.installed.cfg

# Installer logs
pip-log.txt
33 changes: 33 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This file specifies files that are *not* uploaded to Google Cloud Platform
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

tests
.serverless
.github
node_modules
static
#brandenburg.egg-info
#!include:.gitignore

Pipfile*
README.md
runtime.txt
Procfile
Dockerfile
Dockerfile.env
docker-compose.yml
package*.json
conftest.py
.dockerignore
35 changes: 35 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Brandenburg

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U pip==18.0 pipenv==2018.7.1
pipenv install --system --deploy --ignore-pipfile --dev
- name: Lint
run: |
pipenv run lint
- name: Pep8 format check
run: |
pipenv run fmt-check
- name: Import check
run: |
pipenv run isort-check
- name: Run tests
run: |
pipenv run test
131 changes: 131 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# 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
*.yaml

# 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
static/collect/*

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints
*.ipynb

# 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/
*.swp
*.swo

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
**/.DS_Store
.idea/*
*.swn
*.env

# serverless
.serverless/
node_modules/

#GCP auth file
brandenburg.json
7 changes: 7 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[pycodestyle]
# ignore
# - line-length (black já corrige)
# - line break before binary operator
ignore = E501, W503
max-line-length = 120

23 changes: 23 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from codecs import open # To use a consistent encoding
from os import path

from setuptools import find_packages, setup # Always prefer setuptools over distutils

here = path.abspath(path.dirname(__file__))

setup(
name="brandenburg",
version="0.1.0",
description="Data Gate Project",
long_description="",
url="https://github.com/sixcodes/brandenburg",
author="Jesué Junior",
author_email="[email protected]",
license="BSD-3",
classifiers=["Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"],
packages=find_packages(exclude=["contrib", "docs", "tests*"]),
test_suite="tests",
install_requires=[],
)

0 comments on commit 29794d4

Please sign in to comment.