-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
1,248 additions
and
1,587 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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
dist | ||
coverage.xml | ||
release.sh | ||
.venv |
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,25 +1,25 @@ | ||
|
||
fail_fast: true | ||
fail_fast: false | ||
exclude: | | ||
(?x)^( | ||
tests/data/.* | ||
)$ | ||
repos: | ||
- repo: local | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: system | ||
name: isort | ||
entry: poetry run isort . | ||
language: system | ||
pass_filenames: false | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- repo: local | ||
hooks: | ||
- id: pyupgrade | ||
name: pyupgrade | ||
entry: poetry run pyupgrade --py37-plus | ||
entry: uv run pyupgrade --py36-plus | ||
language: python | ||
types: [python] | ||
pass_filenames: true | ||
- repo: local | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.1.14 | ||
hooks: | ||
- id: system | ||
name: Black | ||
entry: poetry run black . | ||
language: system | ||
pass_filenames: false | ||
- id: ruff | ||
args: [--fix] | ||
- id: ruff-format |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from django.conf import settings | ||
|
||
import django_grainy.remote | ||
|
||
|
||
|
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 was deleted.
Oops, something went wrong.
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,66 +1,67 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "django-grainy" | ||
repository = "https://github.com/20c/django-grainy" | ||
description = "granular permissions for django" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
version = "2.0.0" | ||
description = "granular permissions for django" | ||
authors = [ "20C <code@20c.com>",] | ||
license = "LICENSE.txt" | ||
authors = [{name = "20C", email = "code@20c.com"}] | ||
requires-python = ">=3.8,<4.0" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
] | ||
|
||
packages = [ | ||
{ include = "django_grainy", from = "src" }, | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
grainy = ">=1.7.0,<2" | ||
six = ">=1.11.0,<=2.0.0" | ||
djangorestframework = ">=3.0,<4.0" | ||
Django = ">=3.2,<5" | ||
black = "^22.3.0" | ||
[[project.packages]] | ||
include = "django_grainy" | ||
from = "src" | ||
|
||
[tool.poetry.dev-dependencies] | ||
# test | ||
pytest = ">=6.0.1" | ||
pytest-django = ">=3.8.0" | ||
coverage = ">=4.1" | ||
pytest-cov = ">=2.2.1" | ||
tox = "^3.25.0" | ||
tox-gh-actions = ">=2.9.1" | ||
|
||
|
||
# lint | ||
bandit = "^1.6.2" | ||
black = "^22.1" | ||
isort = "^5.7.0" | ||
flake8 = "^3.8.4" | ||
pre-commit = "^2.13.0" | ||
pyupgrade = "^2.34.0" | ||
dependencies = [ | ||
"grainy >=1.7.0,<2", | ||
"six >=1.11.0,<=2.0.0", | ||
] | ||
|
||
# docs | ||
markdown-include = ">=0.5" | ||
mkdocs = "^1.2.3" | ||
[project.optional-dependencies] | ||
dev = [ | ||
"django >=3.2,<5", | ||
"djangorestframework >=3.0,<4.0", | ||
# lint | ||
"pre-commit >=2.13.0", | ||
"pyupgrade >=2.34.0", | ||
"ruff>=0.1", | ||
# test | ||
"pytest >=6.0.1", | ||
"pytest-django >=3.8.0", | ||
"coverage >=4.1", | ||
"pytest-cov >=2.2.1", | ||
"tox >=3.25.0", | ||
"tox-gh-actions >=2.9.1", | ||
"tox-uv>=1.13.0", | ||
# docs | ||
"markdown-include >=0.5", | ||
"mkdocs >=1.2.3", | ||
# ctl | ||
"ctl >=1", | ||
"jinja2 >=3", | ||
"tmpl >=1", | ||
] | ||
|
||
# ctl | ||
ctl = "^1" | ||
jinja2 = "^3" | ||
tmpl = "^1" | ||
# .ruff.toml | ||
[tool.ruff] | ||
ignore = ["F821"] | ||
|
||
[tool.poetry.plugins."markdown.extensions"] | ||
pymdgen = "pymdgen.md:Extension" | ||
[tool.hatch.metadata] | ||
allow-direct-references = true | ||
|
||
[build-system] | ||
requires = [ "poetry>=0.12",] | ||
build-backend = "poetry.masonry.api" | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
multi_line_output = 3 | ||
# temporary solution for https://github.com/python-poetry/poetry/issues/9293 | ||
[[project.source]] | ||
name = "pypi-public" | ||
url = "https://pypi.org/simple/" |
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
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.