-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.6 * tag '2.6': lint updats tox matrix fixes tox matrix updats tox updates tox config add flake8 config updates CI lint updates CI lint preparing release
- Loading branch information
Showing
61 changed files
with
1,395 additions
and
1,205 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[flake8] | ||
max-complexity = 12 | ||
max-line-length = 120 | ||
exclude = | ||
.*/ | ||
__pycache__ | ||
docs | ||
~build | ||
dist | ||
*.md | ||
|
||
per-file-ignores = | ||
src/**/migrations/*.py:E501 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
!.editorconfig | ||
!.pre-commit-config.yaml | ||
!.readthedocs.yaml | ||
!.flake8 | ||
coverage.xml | ||
notes.txt | ||
build/ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "django-concurrency" | ||
version = "2.5" | ||
version = "2.6.0" | ||
description = "Optimistic lock implementation for Django. Prevents users from doing concurrent editing" | ||
authors = [ | ||
{name = "sax", email = "[email protected]"}, | ||
|
@@ -10,6 +10,14 @@ requires-python = ">=3.10" | |
readme = "README.md" | ||
license = {text = "MIT"} | ||
|
||
[project.optional-dependencies] | ||
dj4 = [ | ||
"django>=4.2,<5", | ||
] | ||
dj5 = [ | ||
"django>=5.1", | ||
] | ||
|
||
[tool.pdm] | ||
[[tool.pdm.source]] | ||
url = "https://pypi.org/simple" | ||
|
@@ -18,18 +26,17 @@ name = "pypi" | |
|
||
[tool.pdm.dev-dependencies] | ||
dev = [ | ||
"black", | ||
"black>=24.8.0", | ||
"bump2version>=1.0.1", | ||
"check-manifest", | ||
"django", | ||
"django-reversion", | ||
"django-webtest", | ||
"flake8", | ||
"isort", | ||
"mock", | ||
"pre-commit", | ||
"psycopg2-binary", | ||
"pytest", | ||
"pytest>=8.3.3", | ||
"pytest-cov", | ||
"pytest-django", | ||
"pytest-echo", | ||
|
@@ -40,15 +47,24 @@ dev = [ | |
] | ||
|
||
[tool.isort] | ||
combine_as_imports = true | ||
default_section = "THIRDPARTY" | ||
include_trailing_comma = true | ||
known_tests = "pytest,unittest,factory" | ||
known_demo = "demo" | ||
known_django = "django" | ||
sections = "FUTURE,STDLIB,DJANGO,THIRDPARTY,TESTS,FIRSTPARTY,DEMO,LOCALFOLDER" | ||
known_first_party = "etools_validator" | ||
multi_line_output = 3 | ||
line_length = 120 | ||
balanced_wrapping = true | ||
order_by_type = false | ||
profile = "black" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
| migrations | ||
| snapshots | ||
)/ | ||
''' |
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,4 +1,4 @@ | ||
__author__ = 'sax' | ||
__author__ = "sax" | ||
|
||
VERSION = __version__ = "2.5" | ||
NAME = 'django-concurrency' | ||
VERSION = __version__ = "2.5.0" | ||
NAME = "django-concurrency" |
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.