Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyanand committed Oct 29, 2020
0 parents commit b57ddd4
Show file tree
Hide file tree
Showing 59 changed files with 2,008 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .aicoe-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Setup and configuring aicoe-ci with configuration file `.aicoe-ci.yaml`
# Example `.aicoe-ci.yaml` with a full list of config options is available here: https://github.com/AICoE/aicoe-ci/blob/master/docs/.aicoe-ci.yaml
check:
- thoth-precommit
# Uncomment following line to build a public image of this repo
# - thoth-build

# Uncomment following lines to build a public image of this repo
# build:
# build-stratergy: Source
# build_source_script: "image:///opt/app-root/builder"
# base-image: quay.io/thoth-station/s2i-custom-notebook:latest
# registry: quay.io
# registry-org: aicoe
# registry-project: <CHANGE-ME>
# registry-secret: aicoe-pusher-secret
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @durandom @tumido
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
labels: bug
---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
labels: enhancement
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/major-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Major release
about: Create a new major release
title: New major release
assignees: 'sesheta'
labels: bot
---

Hey, Kebechet!

Create a new major release, please.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/minor-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Minor release
about: Create a new minor release
title: New minor release
assignees: 'sesheta'
labels: bot
---

Hey, Kebechet!

Create a new minor release, please.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/patch-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Patch release
about: Create a new patch release
title: New patch release
assignees: 'sesheta'
labels: bot
---

Hey, Kebechet!

Create a new patch release, please.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/redeliver_container_image.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Deliver Container Image
about: build a git tag and push it as a container image to quay
title: Deliver Container Image
assignees: sesheta
labels: bot
---

Hey, AICoE-CI!

Please build and deliver the following git tag:

Tag: x.y.z
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Related Issues and Dependencies


## This introduces a breaking change

- [ ] Yes
- [ ] No

<!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. -->

## This Pull Request implements

… Explain your changes.

## Description

<!--- Describe your changes in detail -->
89 changes: 89 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# 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/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# DotEnv configuration
.env

# Database
*.db
*.rdb

# Pycharm
.idea

# VS Code
.vscode/

# Spyder
.spyproject/

# Jupyter NB Checkpoints
.ipynb_checkpoints/

# exclude data from source control by default
/data/

# Mac OS-specific storage files
.DS_Store

# vim
*.swp
*.swo

# Mypy cache
.mypy_cache/
64 changes: 64 additions & 0 deletions .jupyter/jupyter_nbconvert_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# type: ignore
# flake8: noqa

"""Configuration file for Jupyter NB Convert."""

## Set the log level by value or name.
c.Application.log_level = "DEBUG"

## The date format used by logging formatters for %(asctime)s
c.Application.log_datefmt = "%Y-%m-%dT%H:%M:%S"

## The Logging format template
# Let's at least try for an logstash format
c.Application.log_format = (
"{"
'"@timestamp": "%(asctime)s", '
'"@version": 1, '
'"level": "%(levelname)s", '
'"name": "%(name)s", '
'"message": "%(message)s"'
"}"
)

## Writer class used to write the results of the conversion
c.NbConvertApp.writer_class = "FilesWriter"

## The time to wait (in seconds) for output from executions. If a cell execution
# takes longer, an exception (TimeoutError on python 3+, RuntimeError on python
# 2) is raised.
#
# `None` or `-1` will disable the timeout. If `timeout_func` is set, it
# overrides `timeout`.
c.ExecutePreprocessor.timeout = 1200

## The export format to be used, either one of the built-in formats ['asciidoc',
# 'custom', 'html', 'latex', 'markdown', 'notebook', 'pdf', 'python', 'rst',
# 'script', 'slides'] or a dotted object name that represents the import path
# for an `Exporter` class
c.NbConvertApp.export_format = "notebook"

## Executes all the cells in a notebook
c.ExecutePreprocessor.enabled = True

## Name of kernel to use to execute the cells. If not set, use the kernel_spec
# embedded in the notebook.
c.ExecutePreprocessor.kernel_name = "python3"

## Automation specific settings
import os

if os.getenv("RUN_IN_AUTOMATION"):
from pathlib import Path

## Directory to write output(s) to. Defaults to output to the directory of each
# notebook. To recover previous default behaviour (outputting to the current
# working directory) use . as the flag value.
base_dir = Path(os.getenv("LOCAL_DATA_PATH"))
notebook_dir = Path(os.getenv("NOTEBOOK_NAME")).parent
c.FilesWriter.build_directory = str(base_dir / "notebooks" / notebook_dir)

## Whether to apply a suffix prior to the extension (only relevant when
# converting to notebook format). The suffix is determined by the exporter, and
# is usually '.nbconvert'.
c.NbConvertApp.use_output_suffix = False
67 changes: 67 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
repos:
- repo: git://github.com/Lucas-C/pre-commit-hooks
rev: v1.1.9
hooks:
- id: remove-tabs

- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: end-of-file-fixer
- id: name-tests-test
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-symlinks
- id: detect-private-key
- id: check-ast
- id: debug-statements

- repo: git://github.com/pycqa/pydocstyle.git
rev: 5.1.1
hooks:
- id: pydocstyle

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
exclude: '^(docs|tasks|tests)|setup\.py'
args: [--ignore-missing-imports]

- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black

- repo: https://github.com/tomcatling/black-nb
rev: '0.3.0'
hooks:
- id: black-nb

# Enable this in repositories with python packages.
# - repo: https://github.com/mgedmin/check-manifest
# rev: '0.39'
# hooks:
# - id: check-manifest

- repo: https://github.com/s-weigand/flake8-nb
rev: v0.2.5
hooks:
- id: flake8-nb
additional_dependencies: ['pep8-naming']
# Ignore all format-related checks as Black takes care of those.
args: ['--ignore', 'E2,W5', '--select', 'E,W,F,N', '--max-line-length=120']
26 changes: 26 additions & 0 deletions .thoth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
host: khemenu.thoth-station.ninja
tls_verify: false
requirements_format: pipenv

runtime_environments:
- name: rhel:8
operating_system:
name: rhel
version: "8"
python_version: "3.6"
recommendation_type: latest

managers:
- name: pipfile-requirements
- name: update
configuration:
labels: [bot]
- name: info
- name: version
configuration:
maintainers:
- tumido
assignees:
- sesheta
labels: [bot]
changelog_file: true
Empty file added LICENSE
Empty file.
Loading

0 comments on commit b57ddd4

Please sign in to comment.