* Move template linting and formatting to ruff
The generated project already uses that, let's be consistent and use it everywhere
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove comments as they're wrongly placed
* Tweak multi-line comment
* Remove a couple of commented out Ruff rules
* Fix extend-exclude in Ruff config
* Adjust Ruff line length
* Run Ruff pre-commit hook
* Run Ruff with --unsafe-fixes
* Run Ruff with --add-noqa
* Run Ruff formatter
* Drop Python 2 in pre/post generation hooks
* Restore print statements in pre/post-generation hooks
* Restore print statements in scripts
* Indent toml with 2 spaces
* Exclude docs and revert most changes from Ruff
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix Ruff issue
* Disable PLR0133 in pre/post commit hooks
We seem to compare 2 constants but seem strings are in fact interpolated in Jinja.
https://docs.astral.sh/ruff/rules/comparison-of-constant/
* Migrate post-generation hook to pathlib
* Migrate post-generation hook to pathlib
* Fix typo in folder name
* Migrate test generation to pathlib
* Fix typo in folder name
* Format comment better
* Update pyproject.toml
* Disable TRY003
* Update Ruff version pre-commit config
* Apply suggestions from code review
* Remove env from tox envlist
* Align ruff in pre-commit config
* Update .pre-commit-config.yaml
* Bump Ruff version
* Bump ruff pre-commit version
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove isort tests as it's no longer used
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.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>
* 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>
- Split out tests and add markers to control where they are run in Travis
- Run each marker on a separate Travis task
- Install pytest-xdist to increase parallelism inside each worker
- Set xdist parallelism to 3
* Create a test matrix on Travis CI to help testing multiple options
* Change test_docker.sh to fail if any command in it fails
* Run black on the CI with --check option
* Fix formatting of project files using black
* Install black in the docker container
* Exclude migrations in black checks
* Fix Black formatting violations
* Run black on the whole generated project & fix issues
* Convert old-styled string formatting to f-string
* Update flake8 explicit version to 3.5.0
* Make tox.ini in sync with requirements.txt
* Fix annoying flake8 F405