Commit graph

301 commits

Author SHA1 Message Date
Lino
8d32603e18
Update CHANGELOG.md
As requested in https://github.com/jazzband/dj-database-url/issues/250
2024-10-03 05:46:26 +02:00
pre-commit-ci[bot]
ed306f37ca
[pre-commit.ci] pre-commit autoupdate (#251)
updates:
- [github.com/psf/black: 24.4.2 → 24.8.0](https://github.com/psf/black/compare/24.4.2...24.8.0)
- [github.com/pycqa/flake8: 7.1.0 → 7.1.1](https://github.com/pycqa/flake8/compare/7.1.0...7.1.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-27 09:26:28 +01:00
pre-commit-ci[bot]
3aad9adc71
[pre-commit.ci] pre-commit autoupdate (#249)
updates:
- [github.com/pycqa/flake8: 7.0.0 → 7.1.0](https://github.com/pycqa/flake8/compare/7.0.0...7.1.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-06-19 10:52:48 +01:00
Matt Seymour
51773f3a89
Update setup.py 2024-05-28 13:23:37 +01:00
boxydog
5a91d7a2c7
Update README.rst (#247)
Add `postgresql` as an alternative URL, which works and is in the code.
2024-05-28 13:11:20 +01:00
pre-commit-ci[bot]
cda5b0c3ce
[pre-commit.ci] pre-commit autoupdate (#245)
updates:
- [github.com/psf/black: 24.4.0 → 24.4.2](https://github.com/psf/black/compare/24.4.0...24.4.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-28 13:07:41 +01:00
pre-commit-ci[bot]
7906f3bf80
[pre-commit.ci] pre-commit autoupdate (#244)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0)
- [github.com/psf/black: 24.2.0 → 24.4.0](https://github.com/psf/black/compare/24.2.0...24.4.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-22 11:47:10 +01:00
pre-commit-ci[bot]
5106a19129
[pre-commit.ci] pre-commit autoupdate (#242)
updates:
- [github.com/psf/black: 23.12.1 → 24.2.0](https://github.com/psf/black/compare/23.12.1...24.2.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-03-14 16:15:34 +00:00
Gert Burger
bcf163e3ab
Check list of schemes to determine if search_path option should be added (#243) 2024-02-20 00:02:06 +00:00
pre-commit-ci[bot]
86f04ef5c6
[pre-commit.ci] pre-commit autoupdate (#241)
updates:
- [github.com/pycqa/flake8: 6.1.0 → 7.0.0](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-09 15:57:45 +00:00
Matt Seymour
fc0dca1b25
Update django 5.0 python compatability (#239) 2023-12-27 16:47:04 +00:00
pre-commit-ci[bot]
ebb86f9b9a
[pre-commit.ci] pre-commit autoupdate (#238)
updates:
- [github.com/psf/black: 23.12.0 → 23.12.1](https://github.com/psf/black/compare/23.12.0...23.12.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-27 16:34:07 +00:00
pre-commit-ci[bot]
1412cef6b5
[pre-commit.ci] pre-commit autoupdate (#237)
updates:
- [github.com/pycqa/isort: 5.13.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.13.0...5.13.2)
- [github.com/psf/black: 23.11.0 → 23.12.0](https://github.com/psf/black/compare/23.11.0...23.12.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-21 12:50:55 +00:00
pre-commit-ci[bot]
186900d937
[pre-commit.ci] pre-commit autoupdate (#236)
updates:
- [github.com/pycqa/isort: 5.12.0 → 5.13.0](https://github.com/pycqa/isort/compare/5.12.0...5.13.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-12-12 16:25:10 +00:00
Tom Parker-Shemilt
d23a2ca4c5
OPTIONS cannot be None given our code (#232)
As per the notes in https://github.com/jazzband/dj-database-url/issues/218
2023-12-09 09:41:09 +00:00
truongvan
0879f127b9
Enhance Query String Parsing for Server-Side Binding in Django 4.2 with psycopg 3.1.8+ Resolves #234 (#235)
* Refactor parsing of query string to handle int, bool, and text types
2023-12-09 09:39:35 +00:00
pre-commit-ci[bot]
9a74cc5283
[pre-commit.ci] pre-commit autoupdate (#233)
updates:
- [github.com/psf/black: 23.10.1 → 23.11.0](https://github.com/psf/black/compare/23.10.1...23.11.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-13 18:26:14 +00:00
Fabian Binz
44bfba5fa2
Add disable_server_side_cursors parameter (#231) 2023-11-08 22:21:29 +00:00
pre-commit-ci[bot]
ee2cb860f5
[pre-commit.ci] pre-commit autoupdate (#229)
updates:
- [github.com/psf/black: 23.10.0 → 23.10.1](https://github.com/psf/black/compare/23.10.0...23.10.1)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-30 17:54:47 +00:00
pre-commit-ci[bot]
9ea2808ed2
[pre-commit.ci] pre-commit autoupdate (#228)
updates:
- [github.com/psf/black: 23.9.1 → 23.10.0](https://github.com/psf/black/compare/23.9.1...23.10.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-23 19:24:42 +01:00
pre-commit-ci[bot]
2d46742db5
[pre-commit.ci] pre-commit autoupdate (#227)
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-10 09:23:03 +01:00
pre-commit-ci[bot]
4a5a75c0f2
[pre-commit.ci] pre-commit autoupdate (#223)
updates:
- [github.com/psf/black: 23.3.0 → 23.9.1](https://github.com/psf/black/compare/23.3.0...23.9.1)
- [github.com/pycqa/flake8: 6.0.0 → 6.1.0](https://github.com/pycqa/flake8/compare/6.0.0...6.1.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-09-26 18:55:22 +01:00
Nikita Sobolev
f600d9089b
Do not leak key loop variable into global namespace (#226)
This is a common problem for module level loops / helpers / etc.

`key` is importable name, it is even imported when using `from dj_database_url import *`. This is clearly not what we want.
2023-09-26 18:52:20 +01:00
Matt Seymour
9292e1fa8a
Update setup.py 2023-08-15 14:11:14 +01:00
Matt Seymour
321a7c207a
Update release.yml
Update version pinning of pypi-publish github action
2023-08-15 13:06:29 +01:00
Matt Seymour
ed68bff3c8
Update CHANGELOG.md 2023-08-15 12:29:47 +01:00
Enrico Stahn
13be1aa9b9
fix: parse options with numerical values as int (#225)
* fix: parse options with numerical values as int

fixes #222

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-15 12:28:05 +01:00
Matt Seymour
9b0f325910
Bump version 2.0.0 and update CHANGELOG.md 2023-04-27 16:28:38 +01:00
Tom Parker-Shemilt
a7f94c8354
Redo as a package to fix mypy issues (#215)
* Demo the mypy types issue

* Redo as a package

* Update setup.py

---------

Co-authored-by: Matt Seymour <mattaseymour@gmail.com>
2023-04-13 10:59:57 +01:00
pre-commit-ci[bot]
bac900f78a
[pre-commit.ci] pre-commit autoupdate (#216)
updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](https://github.com/psf/black/compare/23.1.0...23.3.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-13 10:53:03 +01:00
Michał Górny
84d75e9087
setup.py: Fix project_urls parameter name (#212) 2023-04-02 12:29:31 +01:00
Matt Seymour
2fbcdcbf51
Update change log and setup.py version (1.3.0) 2023-03-27 21:45:16 +01:00
Matt Seymour
14ad3bdc7b
Fixes #209 - Make conn_max_age optional[int] type (#210) 2023-02-14 11:23:46 +00:00
pre-commit-ci[bot]
1cd0d71f56
[pre-commit.ci] pre-commit autoupdate (#208)
updates:
- [github.com/psf/black: 22.12.0 → 23.1.0](https://github.com/psf/black/compare/22.12.0...23.1.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-02-14 11:03:15 +00:00
pre-commit-ci[bot]
acd8d30352
[pre-commit.ci] pre-commit autoupdate (#207)
updates:
- [github.com/pycqa/isort: 5.11.5 → 5.12.0](https://github.com/pycqa/isort/compare/5.11.5...5.12.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-01-31 12:26:52 +00:00
Tom Parker-Shemilt
47ac967679
Throw warning if DATABASE_URL isn't set (#199) 2023-01-30 12:19:02 +00:00
Tom Parker-Shemilt
9c1ebdcda4
isort 5.11.4 is broken (#205)
See https://github.com/PyCQA/isort/issues/2077
2023-01-30 11:55:38 +00:00
Tom Parker-Shemilt
3ef273f086
Avoid duplicating the uses_netloc and schemes lines (#201) 2022-12-30 09:48:07 +00:00
Tom Parker-Shemilt
414c69c122
100% test coverage (#202) 2022-12-30 09:44:45 +00:00
pre-commit-ci[bot]
797fe1e7ce
[pre-commit.ci] pre-commit autoupdate (#203)
updates:
- [github.com/pycqa/isort: v5.11.3 → 5.11.4](https://github.com/pycqa/isort/compare/v5.11.3...5.11.4)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-12-30 09:41:32 +00:00
Tom Parker-Shemilt
698882ea83
Add type hints (#198) 2022-12-21 11:47:41 +00:00
pre-commit-ci[bot]
7755b606ae
[pre-commit.ci] pre-commit autoupdate (#200)
updates:
- [github.com/pycqa/isort: 5.10.1 → v5.11.3](https://github.com/pycqa/isort/compare/5.10.1...v5.11.3)
2022-12-21 11:43:14 +00:00
Tom Parker-Shemilt
e47382d4ab
Better error on missing schema (#196) 2022-12-21 08:19:39 +00:00
Matt Seymour
11854687fa
Update CHANGELOG.md 2022-12-13 09:20:25 +00:00
Matt Seymour
ad0645cb59
Update setup.py 2022-12-13 09:18:16 +00:00
Matt Seymour
7aa7afd764
Update config test_options adding unitest 2022-12-13 09:14:38 +00:00
Matt Seymour
3c1a39b437
Make test_options paramter type None over Dict
Has the potential in the future to be a bug. {} are mutable
in the scope of kwargs of a function.
2022-12-13 09:01:13 +00:00
pre-commit-ci[bot]
b416fa416f
[pre-commit.ci] pre-commit autoupdate (#194)
updates:
- [github.com/psf/black: 22.10.0 → 22.12.0](https://github.com/psf/black/compare/22.10.0...22.12.0)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Tom Parker-Shemilt <palfrey@tevp.net>
2022-12-13 00:21:42 +00:00
Mike
e0cd4c10b1
Support urlencoding/decoding for hostname (#181)
* Use URL Parse library to decode % encodes

Use URL Parse library for what it's good for: to decode % URL encode strings. Don't do it here -- we're already importing a better library for that!

* Test revision with Google Cloud SQL connector

Add synthetic test correlating to Google Cloud SQL connector socket, to make sure Issue https://github.com/jacobian/dj-database-url/issues/132 is solved

Co-authored-by: jared-hardy <jaredhardy@gmail.com>
2022-12-12 20:18:02 +00:00
Chris Hranj
d2e4719a8d
allow TEST settings to be passed into a db config (#116) 2022-12-12 14:56:50 +00:00