Skip to content

Commit

Permalink
Merge pull request #42 from obervinov/fix/v2.0.5
Browse files Browse the repository at this point in the history
## v2.0.5 - 2024-05-28
### What's Changed
**Full Changelog**: v2.0.4...v2.0.5 by @obervinov in #41
#### 📚 Documentation
* Update `*.md` templates
#### 🚀 Features
* Add `github-actions` in dependency bot
* Bump workflow version to `v1.2.2`
* Add new workflow jobs: `pr` and `milestone`
#### 🐛 Bug Fixes
* #40
  • Loading branch information
obervinov authored May 28, 2024
2 parents 9f4202d + 4f76077 commit f4f4b75
Show file tree
Hide file tree
Showing 13 changed files with 126 additions and 163 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
max-line-length=150
max-line-length=170
exclude = .git,__pycache__
extend-ignore =
55 changes: 29 additions & 26 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,41 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
about: Create a bug report to help us improve
title: 'Bug: <describe>'
labels: 'bug'
assignees: 'obervinov'

---
**Choose the component of the module where the bug is located**
- [ ] Basic functions of the module
- [ ] Rate limit functions of the module
- [ ] Storage functions of the module

**Describe the bug**
A clear and concise description of what the bug is.
Not working <describe> in <class> as expected.
Error message: <error message>

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Additional context**
User configuration:
```json
<paste here>
```

**Expected behavior**
A clear and concise description of what you expected to happen.
User data (counters, requests and other temporary data):
```json
<paste here>
```

**Screenshots**
If applicable, add screenshots to help explain your problem.
Logs users module:
```bash
<paste here>
```

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Possible correction**
If you have a possible solution to the bug, please describe it.

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.
**Check list after fixing the bug**
- [ ] Fix 1 in workflow 1 tested and working
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''
title: 'Custom issue: <description>'
labels: 'help wanted'
assignees: 'obervinov'

---

Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
about: Suggest an idea for this module
title: 'Feature request: <description>'
labels: 'enhancement'
assignees: 'obervinov'

---

Expand Down
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/workflows"
schedule:
interval: "weekly"
19 changes: 11 additions & 8 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# PR-1: NAME
**full changelog**: https://github.com/obervinov/users-package/compare/1...2 by @ obervinov https://github.com/obervinov/users-package/pull/1
## VERSION - YYYY-MM-DD
---
name: 'Pull request'
about: Create a release to help us improve
title: 'Release <version>: <description>'
labels: ''
assignees: 'obervinov'

---
## <version> - <YYYY-MM-DD>
### What's Changed
**Full Changelog**: https://github.com/obervinov/user-package/compare/1...2 by @obervinov in https://github.com/obervinov/user-package/pull/1
#### 🐛 Bug Fixes
*
*
#### 📚 Documentation
*
*
#### 💥 Breaking Changes
*
*
#### 🚀 Features
*
*
*
11 changes: 7 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ on: # yamllint disable-line rule:truthy

jobs:
changelog:
uses: obervinov/_templates/.github/workflows/changelog.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/changelog.yaml@v1.2.2

pylint:
uses: obervinov/_templates/.github/workflows/pylint.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/pylint.yaml@v1.2.2

pytest:
uses: obervinov/_templates/.github/workflows/pytest-with-vault.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/pytest-with-vault.yaml@v1.2.2

pyproject:
uses: obervinov/_templates/.github/workflows/[email protected]
uses: obervinov/_templates/.github/workflows/[email protected]

pr:
uses: obervinov/_templates/.github/workflows/[email protected]
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ on: # yamllint disable-line rule:truthy

jobs:
changelog:
uses: obervinov/_templates/.github/workflows/changelog.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/changelog.yaml@v1.2.2

pylint:
uses: obervinov/_templates/.github/workflows/pylint.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/pylint.yaml@v1.2.2

pytest:
uses: obervinov/_templates/.github/workflows/pytest-with-vault.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/pytest-with-vault.yaml@v1.2.2

pyproject:
uses: obervinov/_templates/.github/workflows/pyproject.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/pyproject.yaml@v1.2.2

create-release:
uses: obervinov/_templates/.github/workflows/release.yaml@v1.0.13
uses: obervinov/_templates/.github/workflows/release.yaml@v1.2.2
needs: [changelog, pylint, pytest, pyproject]

milestone:
uses: obervinov/_templates/.github/workflows/[email protected]
needs: [create-release]
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ indent-after-paren=4
indent-string=' '

# Maximum number of characters on a single line.
max-line-length=150
max-line-length=170

# Maximum number of lines in a module.
max-module-lines=1000
Expand Down
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).


## v2.0.5 - 2024-05-28
### What's Changed
**Full Changelog**: https://github.com/obervinov/users-package/compare/v2.0.4...v2.0.5 by @obervinov in https://github.com/obervinov/users-package/pull/41
#### 📚 Documentation
* Update `*.md` templates
#### 🚀 Features
* Add `github-actions` in dependency bot
* Bump workflow version to `v1.2.2`
* Add new workflow jobs: `pr` and `milestone`
#### 🐛 Bug Fixes
* [Configuration `per_day` in RateLimit not working as expected](https://github.com/obervinov/users-package/issues/40)


## v2.0.4 - 2024-03-24
### What's Changed
**Full Changelog**: https://github.com/obervinov/users-package/compare/v2.0.3...v2.0.4 by @obervinov in https://github.com/obervinov/users-package/pull/39
Expand All @@ -15,7 +28,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
* A little tests refactoring



## v2.0.3 - 2024-02-05
### What's Changed
**Full Changelog**: https://github.com/obervinov/users-package/compare/v2.0.2...v2.0.3 by @obervinov in https://github.com/obervinov/users-package/pull/36
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,4 +617,4 @@ poetry install
## <img src="https://github.com/obervinov/_templates/blob/v1.0.5/icons/github-actions.png" width="25" title="github-actions"> GitHub Actions
| Name | Version |
| ------------------------ | ----------- |
| GitHub Actions Templates | [v1.0.13](https://github.com/obervinov/_templates/tree/v1.0.13) |
| GitHub Actions Templates | [v1.2.2](https://github.com/obervinov/_templates/tree/v1.2.2) |
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "users"
version = "2.0.4"
version = "2.0.5"
description = "This python module is a simple implementation of user management functionality for telegram bots, such as: authentication, authorization and request limiting."
authors = ["Bervinov Oleg <[email protected]>"]
maintainers = ["Bervinov Oleg <[email protected]>"]
Expand All @@ -18,7 +18,6 @@ include = ["CHANGELOG.md"]

[tool.poetry.dependencies]
python = "^3.9 || ^3.10 || ^3.11"
pytest = "^8"
logger = { git = "https://github.com/obervinov/logger-package.git", tag = "v1.0.6" }
vault = { git = "https://github.com/obervinov/vault-package.git", tag = "v2.0.4" }

Expand Down
Loading

0 comments on commit f4f4b75

Please sign in to comment.