Commit Graph

2887 Commits

Author SHA1 Message Date
Bruno Alla
17fa459dc3
Fix inconsistent line length and move configs to pyproject.toml (#4276)
* Fix inconsistent line length and move config to pyproject.toml

Fix #2720

* Fix running tox with AUTOFIXABLE_STYLES

* Adjust some styles

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

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

* Adjust more styles

* Split isort and flake8 tests

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-15 15:43:04 +01:00
Bruno Alla
0dcc4c4b4c
Add more pre-commit hooks (#4266)
* Add more hooks from pre-commit-hooks repo

* Add pre-commit hook for prettier

* Format with prettier

* Remove check-docstring-first hook

* Run prettier in the template

* Tweak formatting of dependabot file

* Fix formatting of GitHub files for prettier

* More format fixes of ci.yml
2023-04-15 12:15:15 +01:00
Andrew Chen Wang
1783257ed3
Add username_type option (#3958)
* Add username_type option

* Update docs

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>

* Fix errors and lint

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>

* Try linting again

* Try linting again

* Handle signup

* Fix url reverse in template

* Fix migration file

* Remove extra line in factories

* E2E tests for email username

* Fix style in users api views and serializers

* Fix style in users api views and serializers

* Add conditions for fields in UserAdminCreationForm

* Consistent Jinja tag conditions

* Fix more empty lines issues

* Tweak options order

* Test username email

* Fix code style

* Fix kwargs to reverse user details view

* Remove comment in template

* Fix error messages dict in user form

* Fix line wrapping

* Move custom manager into a separate module and add tests

---------

Signed-off-by: Andrew-Chen-Wang <acwangpython@gmail.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-15 11:53:15 +01:00
Jelmer
42c30dafcb
Upgrade Python to version 3.11 (Faster CPython) (#4256)
* Upgrade Python to version 3.11 (Faster CPython)

* Update pyupgrade config for Python 3.11

* Update tox env to Python 3.11

* Update to latest Python 3.11.3

* Add a note about lack of support in PythonAnywhere

* Rephrase note

* Fix casing

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-15 11:42:33 +01:00
pyup.io bot
2ad3858e26
Update pytest to 7.3.1 (#4272)
* Update pytest from 7.3.0 to 7.3.1

* Update pytest from 7.3.0 to 7.3.1
2023-04-15 10:02:54 +01:00
pyup.io bot
436233e8ba
Update pytest-sugar from 0.9.6 to 0.9.7 (#4269) 2023-04-10 11:36:59 -03:00
pyup.io bot
ea1b686131
Update pytest to 7.3.0 (#4268)
* Update pytest from 7.2.2 to 7.3.0

* Update pytest from 7.2.2 to 7.3.0
2023-04-10 11:09:01 +01:00
dependabot[bot]
73b16539d4
Upgrade traefik to 2.9.10 (#4267)
---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-07 08:33:13 +01:00
Bruno Alla
a607284e1f
Update indent for nginx config file (#4260) 2023-04-05 21:32:05 +01:00
pyup.io bot
782cee3756
Update django to 4.1.8 (#4258) 2023-04-05 14:57:59 +01:00
pyup.io bot
ddd8f1c45d
Update pre-commit to 3.2.2 (#4259)
* Update pre-commit from 3.2.1 to 3.2.2

* Update pre-commit from 3.2.1 to 3.2.2
2023-04-05 14:57:17 +01:00
Jelmer
a07b4b3112
Upgrade to Django 4.1 (#4028)
* Upgrade to Django 4.1

* Bump django-environ back to 0.10.0

---------

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-04-04 22:10:17 +01:00
Jelmer
f93a9f78d9
Replace runserver_plus with runserver (#4255)
* Replace runserver_plus with runserver since it is not compatible with django >= 4.1

* Replace runserver_plus with runserver in post_gen_hooks

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
2023-04-04 21:42:53 +01:00
pyup.io bot
e05122e4b3
Update sentry-sdk to 1.19.0 (#4254) 2023-04-04 21:31:01 +01:00
pyup.io bot
d7783f5c55
Update django-debug-toolbar from 3.8.1 to 4.0.0 (#4251) 2023-04-04 13:42:17 +01:00
Morten Kaae
f55b30bb29
Remove deprecated security setting (#4247)
* Remove deprecated setting

* Update documentation
2023-04-04 10:31:08 +01:00
Arkadiusz Michał Ryś
e13f7afcb8
Fix traefik rule priority for media router (#4244)
* Add option to serve media files locally using nginx

* Fix nginx media location and storage issue

* Fix traefik django-media typo

* Add certresolver property to web-media-router

* Add trailing slash in nginx configuration to avoid path traversal exploits

* Remove autoindexing from nginx configuration so nginx uses its default off setting

* Use nginx to serve media files if cloud provider is None

* Add back warning about lack of media files without Docker or Cloud providers

* Update documentation

* Fix typos and rephrase

Co-authored-by: Arkadiusz Ryś <arkadiusz.michal.rys@gmail.com>

* Change Traefik media router rule generation to force priority

The web-secure-router could end up having priority over the web-media-router when the www subdomain was used.
This fix adds the www subdomain to the web-media-router if it's also present in the web-secure-router rule.
Traefik looks at the length of rules to determine priority when no explicit priority is set.
The web-media-router needs to always have priority over the web-secure-router in order for the media files to be served.

* Add space to Traefik rule

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-04-04 10:25:06 +01:00
pyup.io bot
4641830430
Update psycopg2-binary from 2.9.5 to 2.9.6 (#4249) 2023-04-03 10:48:04 -03:00
pyup.io bot
1c74c8724e
Update psycopg2 to 2.9.6 (#4248)
* Update psycopg2 from 2.9.5 to 2.9.6

* Update psycopg2 from 2.9.5 to 2.9.6
2023-04-03 10:47:54 -03:00
Adin Hodovic
3db64512c8
fix: Syntax for ignoring specific errors (#4250)
Noticed when started using pygrep-hooks. Syntax is noqa: code with a colon.
2023-04-03 10:34:45 -03:00
pyup.io bot
28f05920cf
Update pillow from 9.4.0 to 9.5.0 (#4242) 2023-04-01 12:32:20 +01:00
pyup.io bot
58de1db4a0
Update django-allauth from 0.53.1 to 0.54.0 (#4241) 2023-04-01 12:32:09 +01:00
pyup.io bot
694a29794d
Update redis to 4.5.4 (#4239) 2023-03-29 18:30:37 +01:00
pyup.io bot
4ed32dde32
Update pytz to 2023.3 (#4238) 2023-03-29 16:54:44 +01:00
github-actions[bot]
fffc2a2fa6
Auto-update pre-commit hooks (#4235)
Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
2023-03-29 16:53:39 +01:00
pyup.io bot
43c32961e5
Update black to 23.3.0 (#4236)
* Update black from 23.1.0 to 23.3.0

* Update black from 23.1.0 to 23.3.0
2023-03-29 16:53:29 +01:00
pyup.io bot
6475dffbd8
Update watchfiles from 0.18.1 to 0.19.0 (#4232) 2023-03-27 20:00:22 -03:00
pyup.io bot
8156efd583
Update pre-commit to 3.2.1 (#4229)
* Update pre-commit from 3.2.0 to 3.2.1

* Update pre-commit from 3.2.0 to 3.2.1
2023-03-26 18:44:19 +01:00
pyup.io bot
ad9ea88232
Update pytz from 2022.7.1 to 2023.2 (#4228) 2023-03-25 14:58:44 +00:00
dependabot[bot]
68133e8354
Bump traefik from 2.9.8 to 2.9.9 (#4225)
Bumps traefik from 2.9.8 to 2.9.9.

---
updated-dependencies:
- dependency-name: traefik
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 17:15:43 +00:00
pyup.io bot
3533b4dd93
Update redis from 4.5.2 to 4.5.3 (#4227) 2023-03-22 20:34:03 +00:00
pyup.io bot
95ec685983
Update django-allauth to 0.53.1 (#4223) 2023-03-20 12:11:18 +00:00
pyup.io bot
93165c4859
Update redis to 4.5.2 (#4222) 2023-03-20 12:11:01 +00:00
pyup.io bot
b159194897
Update drf-spectacular from 0.26.0 to 0.26.1 (#4221) 2023-03-18 22:36:31 +00:00
pyup.io bot
d78fe734da
Update pre-commit to 3.2.0 (#4219)
* Update pre-commit from 3.1.1 to 3.2.0

* Update pre-commit from 3.1.1 to 3.2.0
2023-03-18 10:37:38 +00:00
pyup.io bot
52b1a59b7f
Update djangorestframework-stubs to 1.10.0 (#4217) 2023-03-16 17:30:17 +00:00
pyup.io bot
d4a3887e2d
Update django-stubs to 1.16.0 (#4216) 2023-03-16 17:29:41 +00:00
pyup.io bot
9ac1abe194
Update coverage to 7.2.2 (#4218) 2023-03-16 17:16:04 +00:00
pyup.io bot
73628a5f48
Update sentry-sdk to 1.17.0 (#4215) 2023-03-16 17:15:46 +00:00
dependabot[bot]
1605101321
Bump Docker python image from 3.10.9 to 3.10.10 on production Django (#4214)
Bumps python from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 17:13:53 +00:00
dependabot[bot]
96950f2191
Bump Docker python image from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye for docs (#4213)
Bumps python from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 16:35:57 +00:00
dependabot[bot]
6554049a87
Bump Docker python image from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye for local Django service (#4212)
Bumps python from 3.10.9-slim-bullseye to 3.10.10-slim-bullseye.

---
updated-dependencies:
- dependency-name: python
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 16:35:28 +00:00
Bruno Alla
d90f16b647
Pin base Python Docker images to bugfix (#4194)
* Pin base Python Docker images to bugfix

Fix #1810

* Skip major & minor versions of Docker images in Dependabot

* Remove argument for docs Docker image

* Update Dependabot config of generated project
2023-03-16 16:05:02 +00:00
pyup.io bot
5cd58ce160
Update uvicorn to 0.21.1 (#4211) 2023-03-16 15:37:33 +00:00
pyup.io bot
c56088406c
Update django-allauth from 0.52.0 to 0.53.0 (#4210) 2023-03-16 10:30:32 -03:00
pyup.io bot
f08c81eb2c
Update django-celery-beat from 2.4.0 to 2.5.0 (#4208) 2023-03-14 13:22:37 +00:00
pyup.io bot
ef73440c22
Update uvicorn to 0.21.0 (#4203) 2023-03-13 08:23:58 +00:00
pyup.io bot
d588f71dff
Update django-anymail to 9.1 (#4206) 2023-03-13 08:21:59 +00:00
pyup.io bot
522d5219f6
Update ipdb to 0.13.13 (#4202) 2023-03-09 17:25:14 +00:00
mpsantos
a5d8b4be88
Fix the omit configuration for coverage (#4201) 2023-03-09 10:43:50 +00:00