forked from flavors/django-graphql-jwt
-
Notifications
You must be signed in to change notification settings - Fork 0
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
mongkok
committed
Aug 10, 2021
1 parent
2da5c21
commit 2feb015
Showing
12 changed files
with
115 additions
and
144 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
exclude = .tox,*.egg*,src/,**/migrations/*,build | ||
ignore = test_*.py Q001,W504 |
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
name = "django-graphql-jwt" | ||
version = "0.3.3" | ||
description = "JSON Web Token for Django GraphQL." | ||
license = "MIT" | ||
authors = ["mongkok <[email protected]>"] | ||
readme = "README.md" | ||
include = ["LICENSE", "README.md"] | ||
keywords = ["django", "graphql", "jwt"] | ||
|
||
homepage = "https://github.com/flavors/django-graphql-jwt" | ||
repository = "https://github.com/flavors/django-graphql-jwt" | ||
documentation = "https://django-graphql-jwt.domake.io" | ||
|
||
packages = [ | ||
{ include = "graphql_jwt" }, | ||
] | ||
|
||
classifiers = [ | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: System Administrators", | ||
"Operating System :: OS Independent", | ||
"License :: OSI Approved :: MIT License", | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Framework :: Django", | ||
"Framework :: Django :: 2.0", | ||
"Framework :: Django :: 2.1", | ||
"Framework :: Django :: 2.2", | ||
"Framework :: Django :: 3.0", | ||
"Framework :: Django :: 3.1", | ||
"Framework :: Django :: 3.2", | ||
"Topic :: Security", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Internet", | ||
"Topic :: Internet :: WWW/HTTP", | ||
"Topic :: Internet :: WWW/HTTP :: HTTP Servers", | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
|
||
Django = ">=2.0" | ||
graphene = ">=2.1.5" | ||
graphene-django = ">=2.0.0" | ||
PyJWT = ">=2,<3" | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "*" | ||
codecov = "*" | ||
cryptography = "2.8" | ||
flake8 = "*" | ||
isort = "*" | ||
pytest = "*" | ||
pytest-cov = "*" | ||
pytest-django = "*" | ||
|
||
[tool.pytest.ini_options] | ||
DJANGO_SETTINGS_MODULE = "tests.settings" | ||
|
||
[tool.black] | ||
extend-exclude = ''' | ||
/( | ||
| .dist | ||
| .htmlcov | ||
)/ | ||
''' | ||
|
||
[tool.isort] | ||
profile = "black" | ||
skip = "migrations" | ||
default_section = "THIRDPARTY" | ||
known_django = "django" | ||
known_first_party = "graphql_jwt" | ||
sections = "FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
export SOURCE_FILES="graphql_jwt tests" | ||
|
||
set -e | ||
set -x | ||
|
||
flake8 $SOURCE_FILES | ||
black --check $SOURCE_FILES | ||
isort --check-only $SOURCE_FILES |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
bash ./scripts/lint.sh | ||
|
||
pytest \ | ||
--cov=graphql_jwt \ | ||
--cov=tests \ | ||
--cov-report=term-missing \ | ||
--cov-report=xml \ | ||
tests ${@} |