Skip to content

Commit

Permalink
V0.6.0 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmind authored Mar 15, 2024
1 parent eefed81 commit 6228d0e
Show file tree
Hide file tree
Showing 44 changed files with 315 additions and 3,141 deletions.
16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/add-request.md

This file was deleted.

14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/change-request.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/custom-request.md

This file was deleted.

22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feat-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature Request
about: A new feature.
title: "[FEAT] "
labels: feat
assignees: fmind
body:
- type: checkboxes
id: breaking-change
attributes:
label: Breaking change?
options:
- label: Yes
- label: No
- label: Maybe
---

## Description

## Motivation

## Solutions
31 changes: 16 additions & 15 deletions .github/ISSUE_TEMPLATE/fix-request.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
---
name: Fix request
about: Request a fix for this project
name: Fix Request
about: A bug fix
title: "[FIX] "
labels: Fix
labels: fix
assignees: fmind

body:
- type: checkboxes
id: breaking-change
attributes:
label: Breaking change?
options:
- label: Yes
- label: No
- label: Maybe
---

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

**To Reproduce**
Steps to reproduce the behavior:
## Bug Description

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

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

**Additional context**
Add any other context about the problem here.
## Additional Context
8 changes: 7 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Changes

-
# Reasons

# Testing

# Impacts

# Notes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
name: Check
on:
pull_request:
branches:
Expand All @@ -11,5 +12,5 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: poetry install --with dev,checks
- run: poetry install --with checks
- run: poetry run invoke checks
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Publish
on:
release:
types: [published]
env:
DOCKER_IMAGE: ghcr.io/fmind/mlops-python-package:latest
concurrency:
cancel-in-progress: true
group: on-release-published
group: publish-workflow
jobs:
pages:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Build
/dist/
/build/

# Cache
.cache/
Expand All @@ -16,7 +17,9 @@
.ipynb_checkpoints/

# Environs
.env
/.venv/
poetry.lock

# Project
/docs/*
Expand Down
32 changes: 22 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# https://pre-commit.com
# https://pre-commit.com/hooks.html

default_language_version:
python: python3.12
Expand All @@ -13,15 +13,27 @@ repos:
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
# project
- repo: local
- repo: github.com/PyCQA/bandit
rev: v1.7.7
hooks:
- id: invoke-check
name: invoke checks
language: system
pass_filenames: false
verbose: true
entry: invoke checks
- id: bandit
args: ["--configfile=pyproject.toml"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.16.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]
Empty file added CHANGELOG.md
Empty file.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# https://docs.docker.com/engine/reference/builder/

# Define
FROM python:3.12

# Install
COPY dist/*.whl .
RUN pip install --no-cache-dir *.whl

# Execute
RUN pip install *.whl
CMD ["bikes", "--help"]
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# MLOps Python Package

[![on-release-published.yml](https://github.com/fmind/mlops-python-package/actions/workflows/on-release-published.yml/badge.svg)](https://github.com/fmind/mlops-python-package/actions/workflows/on-release-published.yml)
[![Release](https://img.shields.io/github/v/release/fmind/mlops-python-package)](https://github.com/fmind/mlops-python-package/releases)

[![License](https://img.shields.io/github/license/fmind/mlops-python-package)](https://github.com/fmind/mlops-python-package/blob/main/LICENCE.txt)
[![Documentation](https://img.shields.io/badge/documentation-available-brightgreen.svg)](https://fmind.github.io/mlops-python-package/)
[![License](https://img.shields.io/github/license/fmind/mlops-python-package)](https://github.com/fmind/mlops-python-package/blob/main/LICENCE.txt)
[![Release](https://img.shields.io/github/v/release/fmind/mlops-python-package)](https://github.com/fmind/mlops-python-package/releases)

This repository contains a Python package implementation designed to support MLOps initiatives.

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# https://docs.docker.com/compose/compose-file/

services:
mlflow:
image: ghcr.io/mlflow/mlflow:v2.10.2
image: ghcr.io/mlflow/mlflow:v2.11.0
ports:
- 5000:5000
environment:
Expand Down
3 changes: 2 additions & 1 deletion mlops-python-package.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@
"recommendations": [
"charliermarsh.ruff",
"dchanco.vsc-invoke",
"ms-python.mypy-type-checker",
"ms-python.python",
"ms-python.mypy-type-checker",
"ms-python.vscode-pylance",
]
}
}
}
Loading

0 comments on commit 6228d0e

Please sign in to comment.