Skip to content

Commit

Permalink
fix: fix django-version (#10)
Browse files Browse the repository at this point in the history
* fix: fix django-version

* fix: Update requirements.txt

Co-authored-by: Jon <[email protected]>

* Apply suggestions from code review

Co-authored-by: Jon <[email protected]>
  • Loading branch information
Nekotoxin and leeqvip authored Sep 5, 2022
1 parent 395743f commit 706c7bd
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Super-Linter
uses: github/super-linter@v4.9.2
uses: github/super-linter@v4.2.2
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON_BLACK: true
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: /
PYTHON_BLACK_CONFIG_FILE: pyproject.toml
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

coveralls:
name: Indicate completion to coveralls.io
Expand Down
2 changes: 0 additions & 2 deletions dauthz/management/commands/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class Command(BaseCommand):
add group policy: python manage.py group [optional: --enforcer=<enforcer_name>] add <user> <role> [optional:<domain>]
get group policy: python manage.py group [optional: --enforcer=<enforcer_name>] get <user> <role> [optional:<domain>]
"""
requires_system_checks = True
requires_migrations_checks = True

def add_arguments(self, parser):
parser.add_argument("action", type=str, help="Add/Check group policy")
Expand Down
2 changes: 0 additions & 2 deletions dauthz/management/commands/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class Command(BaseCommand):
add policy: python manage.py policy [optional: --enforcer=<enforcer_name>] add <sub> <obj> <act>
get policy: python manage.py policy [optional: --enforcer=<enforcer_name>] get <sub> <obj> <act>
"""
requires_system_checks = True
requires_migrations_checks = True

def add_arguments(self, parser):
parser.add_argument("action", type=str, help="ADD/GET group policy")
Expand Down
2 changes: 0 additions & 2 deletions dauthz/management/commands/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class Command(BaseCommand):
add role for user: python manage.py role [optional: --enforcer=<enforcer_name>] assign <user> <role>
get roles of user: python manage.py role [optional: --enforcer=<enforcer_name>] get <user>
"""
requires_system_checks = True
requires_migrations_checks = True

def add_arguments(self, parser):
parser.add_argument("action", type=str, help="ADD/GET role policy")
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
casbin==1.16.8
Django==4.0.6
casbin>=1.17.0
Django>=3.0.0

0 comments on commit 706c7bd

Please sign in to comment.