Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Important cookietemple template update 2.1.0 released! #900

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .bandit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
### profile may optionally select or skip tests

# (optional) list included tests here:
tests: []

# (optional) list skipped tests here:
skips: ['B403', 'B404', 'B603', 'B607']
skips: ["B403", "B404", "B603", "B607"]
10 changes: 4 additions & 6 deletions .cookietemple.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cookietemple_version: '1.2.2 # <<COOKIETEMPLE_NO_BUMP>>'
cookietemple_version: '1.4.0 # <<COOKIETEMPLE_NO_BUMP>>'
domain: cli
language: python
project_slug: cookietemple
project_slug_no_hyphen: cookietemple
template_version: '1.1.0 # <<COOKIETEMPLE_NO_BUMP>>'
template_version: '2.1.0 # <<COOKIETEMPLE_NO_BUMP>>'
template_handle: cli-python
github_username: cookiejar
creator_github_username: Zethson
Expand All @@ -16,7 +16,5 @@ email: [email protected]
project_name: cookietemple
project_short_description: A cookiecutter based project template creation tool supporting
several domains and languages with linting and template sync support.
version: 1.2.2
license: MIT
command_line_interface: Click
testing_library: pytest
version: 1.4.0
license: Apache2.0
4 changes: 0 additions & 4 deletions .coveragerc

This file was deleted.

2 changes: 2 additions & 0 deletions .darglint
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[darglint]
strictness = short
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ insert_final_newline = false

[Makefile]
indent_style = tab

7 changes: 7 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[flake8]
select = B,B9,C,D,DAR,E,F,N,RST,S,W
ignore = E203,E501,RST201,RST203,RST301,W503,D100
max-line-length = 120
max-complexity = 10
docstring-convention = google
per-file-ignores = tests/*:S101
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
15 changes: 8 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a bug report to help us improve
title: 'Bug Summary'
labels: 'bug'
assignees: ''

title: "Bug Summary"
labels: "bug"
assignees: ""
---

**Describe the bug**
Expand All @@ -14,18 +13,20 @@ assignees: ''
**To Reproduce**

Steps to reproduce the behavior:

1. ...
2. ...
3. ...

**Expected behavior**

<!-- A clear and concise description of what you expected to happen. -->

**System [please complete the following information]:**

- OS: e.g. [Ubuntu 18.04]
- Language Version: [e.g. Python 3.8]
- Virtual environment: [e.g. Conda]
- OS: e.g. [Ubuntu 18.04]
- Language Version: [e.g. Python 3.8]
- Virtual environment: [e.g. Conda]

**Additional context**

Expand Down
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest a new feature
title: 'Feature Request Summary'
labels: 'enhancement'
assignees: ''

title: "Feature Request Summary"
labels: "enhancement"
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/general_question.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: General question
about: Ask a question about anything related to this project
title: 'Question'
labels: 'question'
assignees: ''

title: "Question"
labels: "question"
assignees: ""
---

**Question**
Expand Down
53 changes: 43 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,45 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
target-branch: development
labels:
- DEPENDABOT
commit-message:
prefix: "[DEPENDABOT]"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 3
target-branch: development
labels:
- DEPENDABOT
commit-message:
prefix: "[DEPENDABOT]"

- package-ecosystem: pip
directory: "/.github/workflows"
schedule:
interval: weekly
open-pull-requests-limit: 3
target-branch: development
labels:
- DEPENDABOT
commit-message:
prefix: "[DEPENDABOT]"

- package-ecosystem: pip
directory: "/docs"
schedule:
interval: weekly
open-pull-requests-limit: 3
target-branch: development
labels:
- DEPENDABOT
commit-message:
prefix: "[DEPENDABOT]"

- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 3
target-branch: development
labels:
- DEPENDABOT
commit-message:
prefix: "[DEPENDABOT]"
69 changes: 69 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
# Labels names are important as they are used by Release Drafter to decide
# regarding where to record them in changelog or if to skip them.
#
# The repository labels will be automatically configured using this file and
# the GitHub Action https://github.com/marketplace/actions/github-labeler.
- name: breaking
description: Breaking Changes
color: bfd4f2
- name: bug
description: Something isn't working
color: d73a4a
- name: build
description: Build System and Dependencies
color: bfdadc
- name: ci
description: Continuous Integration
color: 4a97d6
- name: dependencies
description: Pull requests that update a dependency file
color: 0366d6
- name: documentation
description: Improvements or additions to documentation
color: 0075ca
- name: duplicate
description: This issue or pull request already exists
color: cfd3d7
- name: enhancement
description: New feature or request
color: a2eeef
- name: github_actions
description: Pull requests that update Github_actions code
color: "000000"
- name: good first issue
description: Good for newcomers
color: 7057ff
- name: help wanted
description: Extra attention is needed
color: 008672
- name: invalid
description: This doesn't seem right
color: e4e669
- name: performance
description: Performance
color: "016175"
- name: python
description: Pull requests that update Python code
color: 2b67c6
- name: question
description: Further information is requested
color: d876e3
- name: refactoring
description: Refactoring
color: ef67c4
- name: removal
description: Removals and Deprecations
color: 9ae7ea
- name: style
description: Style
color: c120e5
- name: testing
description: Testing
color: b1fc6f
- name: wontfix
description: This will not be worked on
color: ffffff
- name: skip-changelog
description: Changes that should be omitted from the release notes
color: ededed
9 changes: 4 additions & 5 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@

<!-- Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs). -->

- [ ] This comment contains a description of changes (with reason)
- [ ] Referenced issue is linked
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] Documentation in `docs` is updated
- [ ] `CHANGELOG.rst` is updated
- [ ] This comment contains a description of changes (with reason)
- [ ] Referenced issue is linked
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] Documentation in `docs` is updated

**Description of changes**

Expand Down
54 changes: 54 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name-template: "1.4.0 🌈" # <<COOKIETEMPLE_FORCE_BUMP>>
tag-template: 1.4.0 # <<COOKIETEMPLE_FORCE_BUMP>>
exclude-labels:
- "skip-changelog"

categories:
- title: "🚀 Features"
labels:
- feature
- enhancement
- title: "🐛 Bug Fixes"
labels:
- fix
- bugfix
- bug
- title: "🧰 Maintenance"
label: chore
- title: ":package: Dependencies"
labels:
- dependencies
- build
- dependabot
- DEPENDABOT
version-resolver:
major:
labels:
- major
minor:
labels:
- minor
patch:
labels:
- patch
default: patch
autolabeler:
- label: chore
files:
- "*.md"
branch:
- '/docs{0,1}\/.+/'
- label: bug
branch:
- /fix\/.+/
title:
- /fix/i
- label: enhancement
branch:
- /feature\/.+/
body:
- "/JIRA-[0-9]{1,4}/"
template: |
## Changes

$CHANGES
58 changes: 30 additions & 28 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,33 @@ name: Build cookietemple Package
on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
name: Check out source-code repository

- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}

- name: Build cookietemple
run: pip install .

- name: Install required twine packaging dependencies
run: pip install setuptools wheel twine

- name: Build twine package
run: python setup.py sdist bdist_wheel

- name: Check twine package
run: twine check dist/*
build:
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[ci skip]')"
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python: [3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
name: Check out source-code repository

- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}

- name: Install Poetry
run: |
pip install poetry
poetry --version

- name: Build package
run: poetry build --ansi

- name: Install required twine packaging dependencies
run: pip install setuptools wheel twine

- name: Check twine package
run: twine check dist/*
Loading