Skip to content

Commit

Permalink
Merge pull request #1 from d33bs/development
Browse files Browse the repository at this point in the history
Release 0.0.1
  • Loading branch information
d33bs authored Dec 22, 2023
2 parents 0d08611 + 30b7ffd commit 8900359
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/pre-commit-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# used for running pre-commit checks
name: pre-commit checks

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
run_pre_commit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: pre-commit/[email protected]
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
- repo: https://github.com/hadolint/hadolint
rev: v2.12.1-beta
hooks:
- id: hadolint
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# test-semver-docker-deploy
# test-semver-docker-deploy
11 changes: 11 additions & 0 deletions build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3

WORKDIR /usr/src/app

COPY pyproject.toml poetry.lock ./

# hadolint ignore=DL3013
RUN pip install --no-cache-dir poetry poetry-dynamic-versioning && \
poetry install

COPY . .
16 changes: 16 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[tool.poetry]
name = "wintry"
version = "0.0.0"
description = ""
authors = ["d33bs <[email protected]>"]
readme = "README.md"
packages = [{include = "src/wintry"}]

[tool.poetry.dependencies]
python = "^3.9"
cowsay = "^6.1"

[tool.poetry-dynamic-versioning]
enable = true
style = "pep440"
vcs = "git"

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.setuptools_scm]
1 change: 1 addition & 0 deletions src/wintry/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .main import say
4 changes: 4 additions & 0 deletions src/wintry/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def say(words: str) -> None:
import cowsay

cowsay.cow(words)

0 comments on commit 8900359

Please sign in to comment.