* Update black from 23.12.1 to 24.1.0
* Update black from 23.12.1 to 24.1.0
* Update black pre-commit hooks
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix a few styling issues for black v24
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
The custom cloud storages module has been deleted, and the settings have been updated to use the storage backend settings directly from each cloud provider's storage backend libraries. These changes have simplified the cloud storage configuration for each cloud provider in the production settings file.
* Update django-storages from 1.13.2 to 1.14
* Update django-storages from 1.13.2 to 1.14
* Update django-storages from 1.13.2 to 1.14
* Migrate to new namespace for S3 Storage class
* Update extra require for django-storages
* Rename our subclasses for S3Storage to match parent naming
* Remove "Root" in our own storage class names
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
* Override _after_postgeneration to force save
Saving in _after_postgeneration was automatic in Factory Boy versions below 4.0, but must be done explicitly in newer versions.
* Clean up formatting
* Allow django-admin to optionally use django-allauth login workflow
* Fix mypy and add a comment to allauth documentation
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Populate user name field in social auth
* Add docstring for populate_user
* Fix missing def
* Fix missing def
* Add some type hints to the SocialAccountAdapter class
---------
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* 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>
* 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
* 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>
* Update mypy from 0.982 to 0.991
* Ignore type error in test
* Don't build on non-master branch pushes by default
* Ignore type error in DRF view test
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Update black from 22.12.0 to 23.1.0
* Update black from 22.12.0 to 23.1.0
* Update code style according to newer version of black
* Update black pre-commit hook (#4122)
Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
---------
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
* Add support for Webpack as frontend pipeline
* Rename CI jobs
* Fix a couple of issues with Webpack + Docker
* Don't include Boostrap CSS from CDN with Webpack
* Rename variable
* Set publicPath in prod webpack config
* Fix removal of SASS files in post-gen hooks
* Add Webpack to readme usage section
* Run Django + Webpack dev server concurrently without Docker
* Fix async runserver command with Gulp/Webpack
* Upgrade django-webpack-loader to 1.5.0
* Pass variables required by Webpack at build time
* Upgrade django-webpack-loader to 1.7.0
* Add missing condition
* Add support for Azure Storage + Webpack
* Whitespaces
* Rename ROOT_DIR -> BASE_DIR
* Rename jobs
* Bump django-webpack-loader to latest
* Document limitation of Docker + Webpack + no Whitenoise
* Update section on custom Bootstrap compilation in generated readme
* Auto-update pre-commit hooks
* Run 'pre-commit run -a'
* Fix pyupgrade into generated project
Co-authored-by: browniebroke <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
* Adds swagger api documentation when drf is enabled
Changes
* Integrate drf-spectacular module
* Added routes and tests for swagger-ui
* Removes swagger ui tests when drf is not enabled
* Changes url names and documentation title
* Apply suggestions from code review
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
* Fixes typos and linting issues
* Update domain in swagger description
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Fábio C. Barrionuevo da Luz <bnafta@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>