Skip to content

Commit b49091d

Browse files
authored
Dev (#442)
2 parents 686b056 + 7611343 commit b49091d

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

.github/workflows/export-requirements.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
- dev
99
- ci
10+
- release-stage
1011
# Do not trigger tests for documentation or markdown docs.
1112
paths-ignore:
1213
- "docs/**"

.github/workflows/lint-format.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
- dev
99
- ci
10+
- release-stage
1011
# Do not trigger tests for documentation or markdown docs.
1112
paths-ignore:
1213
- "docs/**"

.github/workflows/tests.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ name: Run Pytest tests
44
on:
55
pull_request:
66
branches:
7-
- main
8-
- dev
7+
# - main
8+
# - dev
99
- ci
10+
- release-stage
1011
# Do not trigger tests for documentation or markdown docs.
1112
paths-ignore:
1213
- "docs/**"

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Custom/common exceptions are stored in `red_utils.exc`.
5353
5454
The `red-utils` package makes use of the Python stdlib `pkgutil` module to control imports. Packages in the `ext` module are only imported and available in `red_utils` if the corresponding dependency exists.
5555
56-
For instance, `red_utils.ext.msgpack_utils` will only be available if this check in [src/red_utils/ext/__init__.py](https://github.com/redjax/red-utils/blob/main/src/red_utils/ext/__init__.py) passes:
56+
For instance, `red_utils.ext.msgpack_utils` will only be available if this check in [src/red_utils/ext](https://github.com/redjax/red-utils/blob/main/src/red_utils/ext) passes:
5757
```
5858
import pkgutil
5959

@@ -76,7 +76,7 @@ This project uses dependencies groups, meaning it can be installed with `pip ins
7676
7777
## Dependency groups:
7878
79-
*Note*: I will do my best to update this, but to get an accurate view of available dependency groups and the packages that will be installed, check the [`pyproject.toml`](./pyproject.toml) file. Look for the dependency lists, i.e. `dependencies = [` (the base set of dependencies), `all = [`, `http = [`, etc.
79+
*Note*: I will do my best to update this, but to get an accurate view of available dependency groups and the packages that will be installed, check the [`pyproject.toml`](https://github.com/redjax/red-utils/blob/main/pyproject.toml) file. Look for the dependency lists, i.e. `dependencies = [` (the base set of dependencies), `all = [`, `http = [`, etc.
8080
8181
`[all]`: Install all packages that have a corresponding util. This may be a large install, and is generally not recommended.
8282

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Custom/common exceptions are stored in `red_utils.exc`.
4545

4646
The `red-utils` package makes use of the Python stdlib `pkgutil` module to control imports. Packages in the `ext` module are only imported and available in `red_utils` if the corresponding dependency exists.
4747

48-
For instance, `red_utils.ext.msgpack_utils` will only be available if this check in [src/red_utils/ext/__init__.py](https://github.com/redjax/red-utils/blob/main/src/red_utils/ext/__init__.py) passes:
48+
For instance, `red_utils.ext.msgpack_utils` will only be available if this check in [src/red_utils/ext](https://github.com/redjax/red-utils/blob/main/src/red_utils/ext) passes:
4949
```
5050
import pkgutil
5151

src/red_utils/core/constants.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from pathlib import Path
1010

1111
DATA_DIR: Path = Path(".data")
12-
CACHE_DIR: Path = Path(".cache")
13-
SERIALIZE_DIR: Path = Path(".serialize")
12+
CACHE_DIR: Path = Path(f"{DATA_DIR}/.cache")
13+
SERIALIZE_DIR: Path = Path(f"{DATA_DIR}/.serialize")
1414
JSON_DIR: Path = Path(f"{DATA_DIR}/json")
1515
LOG_DIR: Path = Path("logs")
1616
DB_DIR: Path = Path(".db")

src/red_utils/ext/httpx_utils/controllers/_controllers.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ def send_request(
249249
request: httpx.Request = None,
250250
stream: bool = False,
251251
auth: httpx.Auth = None,
252+
debug_response: bool = False,
252253
) -> httpx.Response:
253254
"""Send httpx.Request using self.Client (and optional cache transport).
254255
@@ -274,9 +275,11 @@ def send_request(
274275
auth=auth,
275276
follow_redirects=self.follow_redirects,
276277
)
277-
log.debug(
278-
f"URL: {request.url}, Response: [{res.status_code}: {res.reason_phrase}]"
279-
)
278+
279+
if debug_response:
280+
log.debug(
281+
f"URL: {request.url}, Response: [{res.status_code}: {res.reason_phrase}]"
282+
)
280283

281284
return res
282285

testing/nested/script.py

-6
This file was deleted.

0 commit comments

Comments
 (0)