-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from juntossomosmais/feat/update-packages-sept…
…ember feat(packages): update packages
- Loading branch information
Showing
23 changed files
with
150 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# https://docs.docker.com/engine/reference/builder/#dockerignore-file | ||
* | ||
!django_outbox_pattern | ||
!scripts | ||
!pyproject.toml | ||
!poetry.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/.github @juntossomosmais/core | ||
* @juntossomosmais/loyalty-backends | ||
* @juntossomosmais/loja-virtual-backends |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
time: "08:00" | ||
day: "sunday" | ||
target-branch: "main" | ||
reviewers: | ||
- "juntossomosmais/loyalty" | ||
- "juntossomosmais/loja-virtual" | ||
- package-ecosystem: "docker" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
time: "08:00" | ||
day: "sunday" | ||
target-branch: "main" | ||
reviewers: | ||
- "juntossomosmais/loyalty" | ||
- "juntossomosmais/loja-virtual" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Infos | ||
|
||
## [Task name on sprint board](https://juntossomosmais.monday.com/boards/) | ||
|
||
### What is being delivered? | ||
|
||
- Describe here all the changes that will be made and what the expected result is. | ||
|
||
### What impacts? | ||
|
||
- Describe what impacts this delivery has and whether it can cause side effects in other parts of the application. | ||
|
||
### Reversal plan | ||
|
||
- Describe which plan we should follow if this delivery has to be reversed. | ||
Ex.: Revert applied migrations, revert commits, redeploy the application via Azure DevOps | ||
|
||
### Where to monitor | ||
|
||
- Describe how this delivery can be monitored and how to analyze the data to ensure it works. | ||
|
||
- Ex.: [Specific Kibana query name]() | ||
|
||
<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import json | ||
|
||
from typing import List | ||
from typing import NamedTuple | ||
from typing import Optional | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class ExceededSendAttemptsException(Exception): | ||
"""Raised when the limit of attempts to send messages to the broker is exceeded""" | ||
|
||
def __init__(self, attempts): # pylint: disable=super-init-not-called | ||
def __init__(self, attempts): | ||
self.attempts = attempts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import logging | ||
import sys | ||
|
||
from datetime import timedelta | ||
from time import sleep | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import sys | ||
|
||
from time import sleep | ||
|
||
from django.core.management.base import BaseCommand | ||
|
1 change: 1 addition & 0 deletions
1
django_outbox_pattern/migrations/0006_published_published_status_27c9ec_btree.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import uuid | ||
|
||
from datetime import timedelta | ||
|
||
from django.contrib.postgres.indexes import BTreeIndex | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import json | ||
import logging | ||
|
||
from datetime import timedelta | ||
from time import sleep | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "django-outbox-pattern" | ||
version = "2.0.0" | ||
version = "2.1.0" | ||
description = "A django application to make it easier to use the transactional outbox pattern" | ||
license = "MIT" | ||
authors = ["Hugo Brilhante <[email protected]>"] | ||
|
@@ -36,7 +36,7 @@ django = ">=5.0.8" | |
[tool.poetry.group.dev.dependencies] | ||
psycopg2-binary = "^2.9.6" | ||
coverage = "*" | ||
pre-commit = "*" | ||
pre-commit = "^3.8.0" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
@@ -59,33 +59,53 @@ exclude = ''' | |
) | ||
''' | ||
[tool.isort] | ||
multi_line_output = 3 | ||
include_trailing_comma = 'True' | ||
force_grid_wrap = 0 | ||
force_single_line = true | ||
use_parentheses = 'True' | ||
ensure_newline_before_comments = 'True' | ||
line_length = 120 | ||
py_version = 312 | ||
use_parentheses = true | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
lines_between_types = 1 | ||
sections = ["FUTURE", "STDLIB", "DJANGO", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] | ||
|
||
[tool.pylint.master] | ||
ignore = [] | ||
[tool.mypy] | ||
python_version = "3.10" | ||
|
||
[tool.pylint.messages_control] | ||
disable = [ | ||
"no-member", | ||
"missing-class-docstring", | ||
"missing-function-docstring", | ||
"missing-module-docstring", | ||
"too-few-public-methods", | ||
"logging-not-lazy", | ||
"consider-using-f-string", | ||
"logging-fstring-interpolation", | ||
"too-many-ancestors" | ||
] | ||
# flake8-mypy expects the two following for sensible formatting | ||
show_column_numbers = true | ||
show_error_context = false | ||
|
||
# do not follow imports (except for ones found in typeshed) | ||
follow_imports = "skip" | ||
|
||
# suppress errors about unsatisfied imports | ||
ignore_missing_imports = true | ||
|
||
# allow untyped calls as a consequence of the options above | ||
disallow_untyped_calls = false | ||
|
||
# allow returning Any as a consequence of the options above | ||
warn_return_any = false | ||
|
||
# treat Optional per PEP 484 | ||
strict_optional = true | ||
|
||
# ensure all execution paths are returning | ||
warn_no_return = true | ||
|
||
# lint-style cleanliness for typing needs to be disabled; returns more errors | ||
# than the full run. | ||
warn_redundant_casts = false | ||
warn_unused_ignores = false | ||
|
||
[tool.pylint.format] | ||
max-line-length = "120" | ||
# The following are off by default since they're too noisy. | ||
# Flip them on if you feel adventurous. | ||
disallow_untyped_defs = false | ||
check_untyped_defs = false | ||
|
||
[[tool.mypy.overrides]] | ||
module = "*.migrations.*" | ||
ignore_errors = true | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
git config --global --add safe.directory /app | ||
pre-commit run --all-files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.