Skip to content

Commit 5a27cb7

Browse files
Merge pull request #141 from MEHRSHAD-MIRSHEKARY/chore/pyproject
chore(poetry): Update poetry config & dependency files
2 parents 1e698d2 + 5ffd0a8 commit 5a27cb7

File tree

6 files changed

+163
-42
lines changed

6 files changed

+163
-42
lines changed

django_logging/management/commands/generate_pretty_json.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ def reformat_json(self, file_path: str, new_file_path: str) -> None:
6060
new_file_path (str): The path where the reformatted JSON file will be saved.
6161
6262
"""
63-
with open(file_path, encoding="utf-8") as infile, open(
64-
new_file_path, "w", encoding="utf-8"
65-
) as outfile:
63+
with (
64+
open(file_path, encoding="utf-8") as infile,
65+
open(new_file_path, "w", encoding="utf-8") as outfile,
66+
):
6667
outfile.write("[\n") # Start the JSON array
6768
first_object = True # Flag to handle commas
6869

django_logging/management/commands/generate_pretty_xml.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ def reformat_and_write_xml(self, file_path: str, new_file_path: str) -> None:
5757
new_file_path (str): The path where the reformatted XML file will be saved.
5858
5959
"""
60-
with open(file_path, encoding="utf-8") as infile, open(
61-
new_file_path, "w", encoding="utf-8"
62-
) as outfile:
60+
with (
61+
open(file_path, encoding="utf-8") as infile,
62+
open(new_file_path, "w", encoding="utf-8") as outfile,
63+
):
6364
# Start the <logs> element
6465
outfile.write("<logs>\n")
6566

packages/requirements-dev.txt

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ argcomplete==3.5.3 ; python_version >= "3.9" and python_version < "4.0"
44
asgiref==3.8.1 ; python_version >= "3.9" and python_version < "4.0"
55
astroid==3.3.9 ; python_version >= "3.9" and python_version < "4.0"
66
babel==2.17.0 ; python_version >= "3.9" and python_version < "4.0"
7-
bandit[toml]==1.8.3 ; python_version >= "3.9" and python_version < "4.0"
7+
bandit==1.8.3 ; python_version >= "3.9" and python_version < "4.0"
88
black==24.10.0 ; python_version >= "3.9" and python_version < "4.0"
99
cachetools==5.5.2 ; python_version >= "3.9" and python_version < "4.0"
1010
certifi==2025.1.31 ; python_version >= "3.9" and python_version < "4.0"
@@ -17,14 +17,13 @@ codecov==2.1.13 ; python_version >= "3.9" and python_version < "4.0"
1717
colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0"
1818
commitizen==3.31.0 ; python_version >= "3.9" and python_version < "4.0"
1919
coverage==7.8.0 ; python_version >= "3.9" and python_version < "4.0"
20-
coverage[toml]==7.8.0 ; python_version >= "3.9" and python_version < "4.0"
2120
decli==0.6.2 ; python_version >= "3.9" and python_version < "4.0"
2221
deprecated==1.2.18 ; python_version >= "3.9" and python_version < "4.0"
2322
dill==0.4.0 ; python_version >= "3.9" and python_version < "4.0"
2423
distlib==0.3.9 ; python_version >= "3.9" and python_version < "4.0"
2524
django-stubs-ext==5.1.3 ; python_version >= "3.9" and python_version < "4.0"
2625
django-stubs==5.1.3 ; python_version >= "3.9" and python_version < "4.0"
27-
django==4.2.20 ; python_version >= "3.9" and python_version < "3.10"
26+
django==4.2.20 ; python_version == "3.9"
2827
django==5.2 ; python_version >= "3.10" and python_version < "4.0"
2928
docformatter==1.7.5 ; python_version >= "3.9" and python_version < "4.0"
3029
docutils==0.19 ; python_version >= "3.9" and python_version < "4.0"
@@ -36,7 +35,7 @@ gitpython==3.1.44 ; python_version >= "3.9" and python_version < "4.0"
3635
identify==2.6.9 ; python_version >= "3.9" and python_version < "4.0"
3736
idna==3.10 ; python_version >= "3.9" and python_version < "4.0"
3837
imagesize==1.4.1 ; python_version >= "3.9" and python_version < "4.0"
39-
importlib-metadata==8.6.1 ; python_version >= "3.9" and python_version < "3.10"
38+
importlib-metadata==8.6.1 ; python_version == "3.9"
4039
importlib-resources==6.5.2 ; python_version >= "3.9" and python_version < "4.0"
4140
iniconfig==2.1.0 ; python_version >= "3.9" and python_version < "4.0"
4241
isort==5.13.2 ; python_version >= "3.9" and python_version < "4.0"
@@ -89,7 +88,7 @@ sphinxcontrib-serializinghtml==2.0.0 ; python_version >= "3.9" and python_versio
8988
sqlparse==0.5.3 ; python_version >= "3.9" and python_version < "4.0"
9089
stevedore==5.4.1 ; python_version >= "3.9" and python_version < "4.0"
9190
termcolor==2.5.0 ; python_version >= "3.9" and python_version < "4.0"
92-
tomli==2.2.1 ; python_version >= "3.9" and python_full_version <= "3.11.0a6"
91+
tomli==2.2.1 ; python_version >= "3.9" and python_version < "3.11"
9392
tomlkit==0.13.2 ; python_version >= "3.9" and python_version < "4.0"
9493
tox==4.25.0 ; python_version >= "3.9" and python_version < "4.0"
9594
types-pyyaml==6.0.12.20250402 ; python_version >= "3.9" and python_version < "4.0"
@@ -101,4 +100,4 @@ urllib3==2.4.0 ; python_version >= "3.9" and python_version < "4.0"
101100
virtualenv==20.30.0 ; python_version >= "3.9" and python_version < "4.0"
102101
wcwidth==0.2.13 ; python_version >= "3.9" and python_version < "4.0"
103102
wrapt==1.17.2 ; python_version >= "3.9" and python_version < "4.0"
104-
zipp==3.21.0 ; python_version >= "3.9" and python_version < "3.10"
103+
zipp==3.21.0 ; python_version == "3.9"

packages/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
asgiref==3.8.1 ; python_version >= "3.9" and python_version < "4.0"
2-
django==4.2.20 ; python_version >= "3.9" and python_version < "3.10"
2+
django==4.2.20 ; python_version == "3.9"
33
django==5.2 ; python_version >= "3.10" and python_version < "4.0"
44
sqlparse==0.5.3 ; python_version >= "3.9" and python_version < "4.0"
55
typing-extensions==4.13.2 ; python_version >= "3.9" and python_version < "3.11"

0 commit comments

Comments
 (0)