-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from anexia/master
Django 4.2 LTS compatibility
- Loading branch information
Showing
53 changed files
with
792 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py,rst,ini}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{html,css,scss,json,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
[flake8] | ||
; We use a line length of 120 instead of pep8's default 79 | ||
ignore = E203, E266, E501, W503, F403, F401, F405 | ||
max-line-length = 120 | ||
; Files not checked: | ||
; - venv: inline virtual env location | ||
; - src: editable pip dependencies | ||
; - wheel: pip wheels | ||
; - migrations: most of these are autogenerated and don't need a check | ||
; - settings: due to the way these are structured, they use undefined variables etc. | ||
; - manage: these are autogenerated and don't need a check | ||
; - docs: contains autogenerated code that doesn't need a check | ||
; - node_modules: contains autogenerated code that doesn't need a check | ||
; - statemachines: django-states2 doesn't respect classname conventions | ||
exclude = venv,*migrations,deployment,scripts,.git,.cache,pip,*settings,node_modules,manage.py,*apps.py | ||
; Cyclomatic complexity check with mccabe. Should be pushed down further. | ||
ignore = F403,E127 | ||
; Ignoring the following cases: | ||
; - F403: unable to detect undefined names (from X import *) | ||
; - E127: continuation line over-indented for visual indent | ||
max-complexity = 30 | ||
select = B,C,E,F,W,T4,B9 | ||
exclude = __pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,4 +94,4 @@ ENV/ | |
|
||
.idea/ | ||
|
||
tests/uploaded/ | ||
tests/uploaded/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files"] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: end-of-file-fixer | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
args: ["--markdown-linebreak-ext=md"] | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.8.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py38-plus"] | ||
|
||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v3.0.0 | ||
hooks: | ||
- id: add-trailing-comma | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ Development Lead | |
Contributors | ||
------------ | ||
|
||
* Jef Geskens <[email protected] > | ||
* Jef Geskens <[email protected]> | ||
* Michael Pölzl <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.