Skip to content

Commit 6542e7b

Browse files
committed
chore: Template upgrade, fix code quality
1 parent d90bd15 commit 6542e7b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1028
-935
lines changed

.copier-answers.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: 2b68356
3+
_src_path: gh:pawamoy/copier-poetry
4+
author_email: [email protected]
5+
author_fullname: "Timoth\xE9e Mazzucotelli"
6+
author_username: pawamoy
7+
copyright_date: '2020'
8+
copyright_holder: "Timoth\xE9e Mazzucotelli"
9+
copyright_holder_email: [email protected]
10+
copyright_license: ISC License
11+
project_description: Automatic Changelog generator using Jinja2 templates.
12+
project_name: git-changelog
13+
python_package_command_line_name: git-changelog
14+
python_package_distribution_name: git-changelog
15+
python_package_import_name: git_changelog
16+
repository_name: git-changelog
17+
repository_namespace: pawamoy
18+
repository_provider: github.com

.cruft.json

-24
This file was deleted.

.flake8

-2
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: unconfirmed
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Run command '...'
17+
3. Scroll down to '...'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**System (please complete the following information):**
27+
- `git-changelog` version: [e.g. 0.2.1]
28+
- Python version: [e.g. 3.8]
29+
- OS: [Windows/Linux]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: feature
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/ci.yml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
defaults:
12+
run:
13+
shell: bash
14+
15+
jobs:
16+
17+
quality:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Set up Python 3.6
26+
uses: actions/setup-python@v1
27+
with:
28+
python-version: 3.6
29+
30+
- name: Set up the cache
31+
uses: actions/cache@v1
32+
with:
33+
path: .venv
34+
key: cache-python-packages
35+
36+
- name: Set up the project
37+
run: |
38+
pip install poetry safety
39+
poetry config virtualenvs.in-project true
40+
make setup
41+
42+
- name: Check if the documentation builds correctly
43+
run: make check-docs
44+
45+
- name: Check the code quality
46+
run: make check-code-quality
47+
48+
- name: Check if the code is correctly typed
49+
run: make check-types
50+
51+
- name: Check for vulnerabilities in dependencies
52+
run: make check-dependencies
53+
54+
tests:
55+
56+
strategy:
57+
max-parallel: 6
58+
matrix:
59+
os: [ubuntu-latest]
60+
python-version: [3.6,3.7,3.8]
61+
62+
runs-on: ${{ matrix.os }}
63+
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v2
67+
68+
- name: Set up Python ${{ matrix.python-version }}
69+
uses: actions/setup-python@v1
70+
with:
71+
python-version: ${{ matrix.python-version }}
72+
73+
- name: Set up the cache
74+
uses: actions/cache@v1
75+
env:
76+
cache-name: cache-python-packages
77+
with:
78+
path: .venv
79+
key: ${{ matrix.os }}-${{ matrix.python-version }}-${{ env.cache-name }}
80+
restore-keys: |
81+
${{ matrix.os }}-${{ matrix.python-version }}-
82+
${{ matrix.os }}-
83+
84+
- name: Set up the project
85+
run: |
86+
pip install poetry
87+
poetry config virtualenvs.in-project true
88+
make setup
89+
90+
- name: Run the test suite
91+
run: make test

.gitignore

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ dist/
55
*.egg-info/
66
build/
77
.coverage
8-
tests/tmp/*
9-
!tests/tmp/.gitkeep
108
pip-wheel-metadata/
119
.pytest_cache/
12-
.python-version
13-
poetry.lock
1410
.mypy_cache/
11+
site/
12+
poetry.lock

.gitlab-ci.yml

-65
This file was deleted.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
<!-- insertion marker -->
78
## [v0.3.0](https://github.com/pawamoy/git-changelog/releases/tag/v0.3.0) - 2020-03-31
89

910
<small>[Compare with v0.2.0](https://github.com/pawamoy/git-changelog/compare/v0.2.0...v0.3.0)</small>

CODE_OF_CONDUCT.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
In the interest of fostering an open and welcoming environment, we as
66
contributors and maintainers pledge to making participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
10-
appearance, race, religion, or sexual identity and orientation.
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
1111

1212
## Our Standards
1313

@@ -23,13 +23,13 @@ include:
2323
Examples of unacceptable behavior by participants include:
2424

2525
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
26+
advances
2727
* Trolling, insulting/derogatory comments, and personal or political attacks
2828
* Public or private harassment
2929
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
30+
address, without explicit permission
3131
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
32+
professional setting
3333

3434
## Our Responsibilities
3535

@@ -68,9 +68,7 @@ members of the project's leadership.
6868
## Attribution
6969

7070
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
71+
available at [http://contributor-covenant.org/version/1/4][version]
7272

73-
[homepage]: https://www.contributor-covenant.org
74-
75-
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)