Skip to content

Commit c3bcd59

Browse files
authored
V4.0.3 (#4)
* V4.0.3 * V4.0.3 * V4.0.3 --------- Co-authored-by: ddc <[email protected]>
1 parent 0a0b9b3 commit c3bcd59

File tree

7 files changed

+131
-27
lines changed

7 files changed

+131
-27
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Bug Report
2+
description: Report broken or incorrect behaviour
3+
labels: unconfirmed bug
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: >
8+
Thanks for taking the time to fill out a bug.
9+
Please note that this form is for bugs only!
10+
- type: input
11+
attributes:
12+
label: Summary
13+
description: A simple summary of your bug report
14+
validations:
15+
required: true
16+
- type: textarea
17+
attributes:
18+
label: Reproduction Steps
19+
description: >
20+
What you did to make it happen.
21+
validations:
22+
required: true
23+
- type: textarea
24+
attributes:
25+
label: Minimal Reproducible Code
26+
description: >
27+
A short snippet of code that showcases the bug.
28+
render: python
29+
- type: textarea
30+
attributes:
31+
label: Expected Results
32+
description: >
33+
What did you expect to happen?
34+
validations:
35+
required: true
36+
- type: textarea
37+
attributes:
38+
label: Actual Results
39+
description: >
40+
What actually happened?
41+
validations:
42+
required: true
43+
- type: checkboxes
44+
attributes:
45+
label: Checklist
46+
description: >
47+
Let's make sure you've properly done due diligence when reporting this issue!
48+
options:
49+
- label: I have searched the open issues for duplicates.
50+
required: true
51+
- label: I have shown the entire traceback, if possible.
52+
required: true
53+
- label: I have removed my token from display, if visible.
54+
required: true
55+
- type: textarea
56+
attributes:
57+
label: Additional Context
58+
description: If there is anything else to say, please do so here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Feature Request
2+
description: Suggest a feature for this library
3+
labels: feature request
4+
body:
5+
- type: input
6+
attributes:
7+
label: Summary
8+
description: >
9+
A short summary of what your feature request is.
10+
validations:
11+
required: true
12+
- type: dropdown
13+
attributes:
14+
multiple: false
15+
label: What is the feature request for?
16+
options:
17+
- The core library
18+
- The documentation
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: The Problem
24+
description: >
25+
What problem is your feature trying to solve?
26+
What becomes easier or possible when this feature is implemented?
27+
validations:
28+
required: true
29+
- type: textarea
30+
attributes:
31+
label: The Ideal Solution
32+
description: >
33+
What is your ideal solution to the problem?
34+
What would you like this feature to do?
35+
validations:
36+
required: true
37+
- type: textarea
38+
attributes:
39+
label: The Current Solution
40+
description: >
41+
What is the current solution to the problem, if any?
42+
validations:
43+
required: false
44+
- type: textarea
45+
attributes:
46+
label: Additional Context
47+
description: If there is anything else to say, please do so here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Summary
2+
3+
<!-- What is this pull request for? Does it fix any issues? -->
4+
5+
## Checklist
6+
- [ ] If code changes were made, then they have been tested.
7+
- [ ] I have updated the documentation to reflect the changes.
8+
- [ ] I have thought about how this code may affect other services.
9+
10+
- [ ] This PR fixes an issue.
11+
- [ ] This PR adds something new (e.g. new method or parameters).
12+
- [ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
13+
- [ ] This PR is **not** a code change (e.g. documentation, README, ...)
14+
15+
## Reviewer
16+
- [ ] I understand that approving this code, I am also responsible for it going into the codebase.

.github/pull_request_template

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ logger.warning("This is a warning example")
232232

233233

234234

235-
# Context Manager Support
235+
# Context Manager Support (slow but if you want immediate, deterministic cleanup for a specific scope)
236236

237237
All logger types support context managers for automatic resource cleanup and exception safety:
238238

@@ -385,7 +385,7 @@ audit_logger.info("User admin logged in")
385385
```
386386

387387
## Env Variables (Optional | Production)
388-
.env variables can be used by leaving all options blank when calling the function
388+
The .env variables file can be used by leaving all options blank when calling the function
389389
If not specified inside the .env file, it will use the dafault value
390390
This is a good approach for production environments, since options can be changed easily
391391
```python

pyproject.toml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
requires = ["poetry-core>=2.0.0,<3.0.0"]
33
build-backend = "poetry.core.masonry.api"
44

5-
65
[tool.poetry]
76
name = "pythonLogs"
8-
version = "4.0.2"
7+
version = "4.0.3"
98
description = "High-performance Python logging library with file rotation and optimized caching for better performance"
109
license = "MIT"
1110
readme = "README.md"
@@ -31,51 +30,43 @@ classifiers = [
3130
"Natural Language :: English",
3231
]
3332

34-
3533
[tool.poetry.dependencies]
3634
python = "^3.10"
3735
pydantic = "^2.11.7"
3836
pydantic-settings = "^2.10.1"
3937
python-dotenv = "^1.1.1"
4038

41-
4239
[tool.poetry.group.test.dependencies]
4340
coverage = "^7.9.2"
4441
poethepoet = "^0.36.0"
4542
psutil = "^7.0.0"
4643
pytest = "^8.4.1"
4744

45+
[tool.poe.tasks]
46+
_test = "coverage run -m pytest -v"
47+
_coverage_report = "coverage report"
48+
_coverage_xml = "coverage xml"
49+
tests = ["_test", "_coverage_report", "_coverage_xml"]
50+
test = ["tests"]
4851

4952
[tool.poetry.group.test]
5053
optional = true
5154

52-
5355
[tool.black]
5456
line-length = 120
5557
skip-string-normalization = true
5658

57-
5859
[tool.pytest.ini_options]
5960
markers = [
6061
"slow: marks tests as slow (deselect with '-m \"not slow\"')"
6162
]
6263

63-
6464
[tool.coverage.run]
6565
omit = [
6666
"tests/*",
6767
]
6868

69-
7069
[tool.coverage.report]
7170
exclude_lines = [
7271
"pragma: no cover",
7372
]
74-
75-
76-
[tool.poe.tasks]
77-
_test = "coverage run -m pytest -v"
78-
_coverage_report = "coverage report"
79-
_coverage_xml = "coverage xml"
80-
tests = ["_test", "_coverage_report", "_coverage_xml"]
81-
test = ["tests"]

0 commit comments

Comments
 (0)