Skip to content

Commit 788ae5f

Browse files
author
Richard Decal
committed
🎉 Initial commit
0 parents  commit 788ae5f

39 files changed

+3377
-0
lines changed

.dockerignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Git
2+
.git
3+
.gitignore
4+
.github
5+
6+
# Docker
7+
.dockerignore
8+
9+
# IDE
10+
.idea
11+
.vscode
12+
13+
# Byte-compiled / optimized / DLL files
14+
__pycache__/
15+
**/__pycache__/
16+
*.pyc
17+
*.pyo
18+
*.pyd
19+
.Python
20+
*.py[cod]
21+
*$py.class
22+
.pytest_cache/
23+
..mypy_cache/
24+
25+
# poetry
26+
.venv
27+
28+
# C extensions
29+
*.so
30+
31+
# Virtual environment
32+
.venv
33+
venv
34+
35+
.DS_Store
36+
.AppleDouble
37+
.LSOverride
38+
._*

.editorconfig

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Check http://editorconfig.org for more information
2+
# This is the main config file for this project:
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 2
11+
trim_trailing_whitespace = true
12+
13+
[*.{py, pyi}]
14+
indent_style = space
15+
indent_size = 4
16+
17+
[Makefile]
18+
indent_style = tab
19+
20+
[*.md]
21+
trim_trailing_whitespace = false
22+
23+
[*.{diff,patch}]
24+
trim_trailing_whitespace = false

.github/.stale.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/ISSUE_TEMPLATE/bug_report.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: 🐛 Bug report
3+
about: If something isn't working 🔧
4+
title: ''
5+
labels: bug
6+
assignees:
7+
---
8+
9+
## 🐛 Bug Report
10+
11+
<!-- A clear and concise description of what the bug is. -->
12+
13+
## 🔬 How To Reproduce
14+
15+
Steps to reproduce the behavior:
16+
17+
1. ...
18+
19+
### Code sample
20+
21+
<!-- If applicable, attach a minimal code sample to reproduce the decried issue. -->
22+
23+
### Environment
24+
25+
* OS: [e.g. Linux / Windows / macOS]
26+
* Python version, get it with:
27+
28+
```bash
29+
python --version
30+
```
31+
32+
### Screenshots
33+
34+
<!-- If applicable, add screenshots to help explain your problem. -->
35+
36+
## 📈 Expected behavior
37+
38+
<!-- A clear and concise description of what you expected to happen. -->
39+
40+
## 📎 Additional context
41+
42+
<!-- Add any other context about the problem here. -->

.github/ISSUE_TEMPLATE/config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Configuration: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository
2+
3+
blank_issues_enabled: false
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: 🚀 Feature request
3+
about: Suggest an idea for this project 🏖
4+
title: ''
5+
labels: enhancement
6+
assignees:
7+
---
8+
9+
## 🚀 Feature Request
10+
11+
<!-- A clear and concise description of the feature proposal. -->
12+
13+
## 🔈 Motivation
14+
15+
<!-- Please describe the motivation for this proposal. -->
16+
17+
## 🛰 Alternatives
18+
19+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
20+
21+
## 📎 Additional context
22+
23+
<!-- Add any other context or screenshots about the feature request here. -->

.github/ISSUE_TEMPLATE/question.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: ❓ Question
3+
about: Ask a question about this project 🎓
4+
title: ''
5+
labels: question
6+
assignees:
7+
---
8+
9+
## Checklist
10+
11+
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->
12+
13+
- [ ] I've searched the project's [`issues`](https://github.com/crypdick/ubuntu-namer/issues?q=is%3Aissue).
14+
15+
## ❓ Question
16+
17+
<!-- What is your question -->
18+
19+
How can I [...]?
20+
21+
Is it possible to [...]?
22+
23+
## 📎 Additional context
24+
25+
<!-- Add any other context or screenshots about the feature request here. -->

.github/PULL_REQUEST_TEMPLATE.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Description
2+
3+
<!-- Add a more detailed description of the changes if needed. -->
4+
5+
## Related Issue
6+
7+
<!-- If your PR refers to a related issue, link it here. -->
8+
9+
## Type of Change
10+
11+
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->
12+
13+
- [ ] 📚 Examples / docs / tutorials / dependencies update
14+
- [ ] 🔧 Bug fix (non-breaking change which fixes an issue)
15+
- [ ] 🥂 Improvement (non-breaking change which improves an existing feature)
16+
- [ ] 🚀 New feature (non-breaking change which adds functionality)
17+
- [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
18+
- [ ] 🔐 Security fix
19+
20+
## Checklist
21+
22+
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->
23+
24+
- [ ] I've read the [`CODE_OF_CONDUCT.md`](https://github.com/crypdick/ubuntu-namer/blob/master/CODE_OF_CONDUCT.md) document.
25+
- [ ] I've read the [`CONTRIBUTING.md`](https://github.com/crypdick/ubuntu-namer/blob/master/CONTRIBUTING.md) guide.
26+
- [ ] I've updated the code style using `make codestyle`.
27+
- [ ] I've written tests for all new methods and classes that I created.
28+
- [ ] I've written the docstring in Google format for all the methods and classes that I used.

.github/dependabot.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Configuration: https://dependabot.com/docs/config-file/
2+
# Docs: https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically
3+
4+
version: 2
5+
6+
updates:
7+
- package-ecosystem: "pip"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"
11+
allow:
12+
- dependency-type: "all"
13+
commit-message:
14+
prefix: ":arrow_up:"
15+
open-pull-requests-limit: 50
16+
17+
- package-ecosystem: "github-actions"
18+
directory: "/"
19+
schedule:
20+
interval: "daily"
21+
allow:
22+
- dependency-type: "all"
23+
commit-message:
24+
prefix: ":arrow_up:"
25+
open-pull-requests-limit: 50
26+
27+
- package-ecosystem: "docker"
28+
directory: "/docker"
29+
schedule:
30+
interval: "weekly"
31+
allow:
32+
- dependency-type: "all"
33+
commit-message:
34+
prefix: ":arrow_up:"
35+
open-pull-requests-limit: 50

.github/release-drafter.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Release drafter configuration https://github.com/release-drafter/release-drafter#configuration
2+
# Emojis were chosen to match the https://gitmoji.carloscuesta.me/
3+
4+
name-template: "v$NEXT_PATCH_VERSION"
5+
tag-template: "v$NEXT_PATCH_VERSION"
6+
7+
categories:
8+
- title: ":rocket: Features"
9+
labels: [enhancement, feature]
10+
- title: ":wrench: Fixes & Refactoring"
11+
labels: [bug, refactoring, bugfix, fix]
12+
- title: ":package: Build System & CI/CD"
13+
labels: [build, ci, testing]
14+
- title: ":boom: Breaking Changes"
15+
labels: [breaking]
16+
- title: ":pencil: Documentation"
17+
labels: [documentation]
18+
- title: ":arrow_up: Dependencies updates"
19+
labels: [dependencies]
20+
21+
template: |
22+
## What’s Changed
23+
24+
$CHANGES
25+
26+
## :busts_in_silhouette: List of contributors
27+
28+
$CONTRIBUTORS

.github/workflows/build.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.7", "3.9"]
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2.2.2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
19+
- name: Install poetry
20+
run: make poetry-download
21+
22+
- name: Set up cache
23+
uses: actions/cache@v2.1.6
24+
with:
25+
path: .venv
26+
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
27+
- name: Install dependencies
28+
run: |
29+
poetry config virtualenvs.in-project true
30+
poetry install
31+
32+
- name: Run style checks
33+
run: |
34+
make check-codestyle
35+
36+
- name: Run tests
37+
run: |
38+
make test
39+
40+
- name: Run safety checks
41+
run: |
42+
make check-safety

.github/workflows/greetings.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
pr-message: 'Hello @${{ github.actor }}, thank you for submitting a PR! We will respond as soon as possible.'
13+
issue-message: |
14+
Hello @${{ github.actor }}, thank you for your interest in our work!
15+
16+
If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.

.github/workflows/release-drafter.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5.15.0
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)