-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,623 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
win: circleci/windows@2.4.0 | ||
|
||
commands: | ||
# Windows-related commands | ||
win_setup_conda: | ||
# Miniconda3 is pre-installed on the machine: | ||
# https://circleci.com/docs/2.0/hello-world-windows/ | ||
description: Setup conda | ||
steps: | ||
- run: | ||
name: Initialize conda | ||
command: conda init powershell | ||
- run: | ||
name: Create 'kedro-telemetry' conda environment | ||
command: | | ||
conda create --name kedro-telemetry python=$env:CONDA_ENV_PY_VERSION -y | ||
win_setup_requirements: | ||
description: Install kedro-telemetry dependencies | ||
steps: | ||
- run: | ||
name: Install kedro-telemetry dependencies | ||
command: | | ||
conda activate kedro-telemetry | ||
python -m pip install -U pip setuptools wheel | ||
pip install git+https://github.com/quantumblacklabs/kedro@master | ||
pip install -r test_requirements.txt -U | ||
win_build: | ||
description: Run build on Windows | ||
steps: | ||
- checkout | ||
- win_setup_conda | ||
- win_setup_requirements | ||
- run: | ||
name: Run unit tests | ||
command: | | ||
conda activate kedro-telemetry | ||
pytest .\tests | ||
jobs: | ||
build_36: &DEFAULT | ||
machine: | ||
# Don't use 2018 image: https://discuss.circleci.com/t/24639/18 | ||
image: circleci/classic:201711-01 | ||
docker_layer_caching: true | ||
environment: | ||
CONDA_ENV_PY_VERSION: "3.6" | ||
steps: | ||
- checkout | ||
- run: | ||
name: Create virtual env | ||
command: | | ||
# Get rid of pyenv stuff | ||
sudo rm -rf .pyenv/ /opt/circleci/.pyenv/ | ||
# Download and install miniconda | ||
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda.sh | ||
bash miniconda.sh -b -p $HOME/miniconda | ||
# Create an anaconda virtualenv for ${CONDA_ENV_PY_VERSION} and make that the default python interpreter | ||
echo ". /home/circleci/miniconda/etc/profile.d/conda.sh" >> $BASH_ENV | ||
echo "conda deactivate; conda activate kedro-telemetry" >> $BASH_ENV | ||
. /home/circleci/miniconda/etc/profile.d/conda.sh | ||
conda create --name kedro-telemetry python=${CONDA_ENV_PY_VERSION} -y | ||
source $BASH_ENV | ||
- run: | ||
name: Pip install dependencies | ||
command: | | ||
make install-pip-setuptools | ||
pip install git+https://github.com/quantumblacklabs/kedro | ||
pip install -r test_requirements.txt | ||
pre-commit install --install-hooks | ||
pre-commit install --hook-type pre-push | ||
- run: | ||
name: Run pylint and flake8 | ||
command: | | ||
make lint | ||
- run: | ||
name: Run tests | ||
command: | | ||
make test | ||
build_37: | ||
<<: *DEFAULT | ||
environment: | ||
CONDA_ENV_PY_VERSION: 3.7 | ||
|
||
build_38: | ||
<<: *DEFAULT | ||
environment: | ||
CONDA_ENV_PY_VERSION: 3.8 | ||
|
||
# Windows-related jobs | ||
win_build_36: | ||
executor: | ||
name: win/default | ||
working_directory: ~/repo | ||
environment: | ||
CONDA_ENV_PY_VERSION: "3.6" | ||
steps: [win_build] | ||
|
||
win_build_37: | ||
executor: | ||
name: win/default | ||
working_directory: ~/repo | ||
environment: | ||
CONDA_ENV_PY_VERSION: "3.7" | ||
steps: | ||
- win_build | ||
|
||
win_build_38: | ||
executor: | ||
name: win/default | ||
working_directory: ~/repo | ||
environment: | ||
CONDA_ENV_PY_VERSION: "3.8" | ||
steps: | ||
- win_build | ||
|
||
workflows: | ||
version: 2 | ||
regular: | ||
jobs: | ||
- build_36 | ||
- build_37 | ||
- build_38 | ||
- win_build_36 | ||
- win_build_37 | ||
- win_build_38 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copied from Black | ||
|
||
[flake8] | ||
ignore = E126, E203, E231, E266, E501, W503 | ||
max-line-length = 80 | ||
max-complexity = 18 | ||
select = B,C,E,F,W,T4,B9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Bug report | ||
about: If something isn't working | ||
title: '<Title>' | ||
labels: 'Issue: Bug Report' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
Short description of the problem here. | ||
|
||
## Context | ||
How has this bug affected you? What were you trying to accomplish? | ||
|
||
## Steps to Reproduce | ||
1. [First Step] | ||
2. [Second Step] | ||
3. [And so on...] | ||
|
||
## Expected Result | ||
Tell us what should happen. | ||
|
||
## Actual Result | ||
Tell us what happens instead. | ||
|
||
``` | ||
-- If you received an error, place it here. | ||
``` | ||
|
||
``` | ||
-- Separate them if you have more than one. | ||
``` | ||
|
||
## Your Environment | ||
Include as many relevant details about the environment in which you experienced the bug: | ||
|
||
* Kedro-telemetry version used (`pip show kedro-telemetry`): | ||
* Kedro version used (`pip show kedro` or `kedro -V`): | ||
* Python version used (`python -V`): | ||
* Operating system and version: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Let us know if you have a feature request or enhancement | ||
title: '<Title>' | ||
labels: 'Issue: Feature Request' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
Is your feature request related to a problem? A clear and concise description of what the problem is: "I'm always frustrated when ..." | ||
|
||
## Context | ||
Why is this change important to you? How would you use it? How can it benefit other users? | ||
|
||
## Possible Implementation | ||
(Optional) Suggest an idea for implementing the addition or change. | ||
|
||
## Possible Alternatives | ||
(Optional) Describe any alternative solutions or features you've considered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Description | ||
<!-- Why was this PR created? --> | ||
|
||
## Development notes | ||
<!-- What have you changed, and how has this been tested? --> | ||
|
||
## Checklist | ||
|
||
- [ ] Read the [contributing](https://github.com/quantumblacklabs/kedro/blob/master/CONTRIBUTING.md) guidelines | ||
- [ ] Opened this PR as a 'Draft Pull Request' if it is work-in-progress | ||
- [ ] Updated the documentation to reflect the code changes | ||
- [ ] Added a description of this change in the [`RELEASE.md`](https://github.com/quantumblacklabs/kedro/blob/master/RELEASE.md) file | ||
- [ ] Added tests to cover my changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
# CMake | ||
cmake-build-debug/ | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
.idea/ | ||
*.iml | ||
out/ | ||
|
||
### macOS | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
.Trashes | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
### Python template | ||
# 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/ | ||
*.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/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django | ||
*.log | ||
.static_storage/ | ||
.media/ | ||
local_settings.py | ||
|
||
# Flask | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy | ||
.scrapy | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# 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/ | ||
|
||
# Visual Studio Code | ||
.vscode/ | ||
# end to end tests assets | ||
|
||
# Vim | ||
*~ | ||
.*.swo | ||
.*.swp | ||
|
||
.pytest_cache/ | ||
docs/tmp-build-artifacts | ||
docs/build |
Oops, something went wrong.