-
Notifications
You must be signed in to change notification settings - Fork 9
CLE-3230: Fix dependabot issues and package updates #63
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
Open
DelboyJay
wants to merge
13
commits into
master
Choose a base branch
from
CLE-3230_fix_dependabot_issues
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3b70bd8
- update poetry packages with minimum versions to fix critical issues…
DelboyJay 4716bbb
- update tox for newer version of python and packages.
DelboyJay 1f39c41
- update tox for newer version of python and packages.
DelboyJay fc7944e
removed execute bit on files
DelboyJay 340e3e6
Fix bumpversion config
DelboyJay 4ba5f85
- bump version to 1.4.0
DelboyJay 5b02587
- Django 3.2 does not properly support Python 3.13, and we get errors…
DelboyJay e3075b5
- fix error in pre commit config.
DelboyJay 7035273
- fix error in ruff config.
DelboyJay 1e3f6e4
- update some dependant packages for security patching.
DelboyJay ef6ab13
- changes requested by Lewis
DelboyJay 352ee0e
- Added Django 5.0 and 5.1 to the readme
DelboyJay 70b3996
- Changed >= in pyproject toml to ^ as this is best practice.
DelboyJay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
---|---|---|
|
@@ -2,12 +2,12 @@ name: "Linting" | |
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4.2.2 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: "3.11" | ||
python-version: "3.9" | ||
|
||
- name: pre-commit | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].1 |
This file contains hidden or 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 |
---|---|---|
|
@@ -22,13 +22,7 @@ runs: | |
- name: Start Redis | ||
uses: supercharge/[email protected] | ||
|
||
- name: tox tests for python 3.7 | ||
- name: tox tests | ||
shell: bash | ||
if: ${{inputs.python-version == '3.7'}} | ||
run: tox -e py37-django22-drf38,py37-django22-drf39,py37-django22-drf310,py37-django22-drf311,py37-django22-drf312,py37-django22-drf313,py37-django32-drf311,py37-django32-drf312,py37-django32-drf313 | ||
|
||
- name: tox tests for python >= 3.8 | ||
shell: bash | ||
if: ${{inputs.python-version != '3.7'}} | ||
run: | | ||
tox |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,37 +1,38 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.2 | ||
hooks: | ||
- id: ruff | ||
alias: autoformat | ||
args: [--fix] | ||
language_version: python3.9 | ||
- id: ruff-format | ||
language_version: python3.9 | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-bugbear] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: forbid-new-submodules | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
- id: trailing-whitespace | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
language_version: python3.9 | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-vcs-permalinks | ||
- id: check-xml | ||
- id: check-yaml | ||
- id: debug-statements | ||
language_version: python3.9 | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: fix-encoding-pragma | ||
args: [--remove] | ||
- id: forbid-new-submodules | ||
- id: mixed-line-ending | ||
args: [--fix=lf] | ||
- id: no-commit-to-branch | ||
args: [--branch=master] | ||
- id: trailing-whitespace |
This file contains hidden or 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,40 @@ | ||
# https://docs.astral.sh/ruff/tutorial/#configuration | ||
# https://docs.astral.sh/ruff/settings/ | ||
# Set the maximum line length to 88. | ||
line-length = 88 | ||
indent-width = 4 | ||
target-version="py39" | ||
|
||
[lint] | ||
select = [ | ||
"B", # flake8-bugbear | ||
"C", | ||
"DJ", # flake8-django | ||
"E", # pycodestyle | ||
"F", # Pyflakes | ||
"I", # isort | ||
"PL", # pylint | ||
"UP", # pyupgrade | ||
"W", | ||
"B9" | ||
] | ||
ignore = ["E203", "B904", "DJ001", "DJ006", "W191"] | ||
|
||
|
||
# Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that | ||
# overlap with the use of a formatter, like Black, but we can override this behavior by | ||
# explicitly adding the rule. | ||
extend-select = ["E501"] | ||
|
||
[format] | ||
quote-style = "double" | ||
indent-style = "space" | ||
|
||
[lint.isort] | ||
known-first-party = ["idempotency_key"] | ||
|
||
[lint.mccabe] # DO NOT INCREASE THIS VALUE | ||
max-complexity = 18 # default: 10 | ||
|
||
[lint.pylint] | ||
max-args = 10 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,13 @@ | ||
services: | ||
redis: | ||
image: redis:7-alpine # Use the desired Redis version | ||
container_name: redis_local | ||
ports: | ||
- "6379:6379" # Maps host port 6379 to container port 6379 | ||
command: ["redis-server", "--appendonly", "yes"] # Enables persistence | ||
volumes: | ||
- redis_data:/data # Persist data | ||
|
||
volumes: | ||
redis_data: | ||
driver: local |
Empty file.
This file contains hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.