Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
- "3.11"
- "3.10"
- "3.9"
- "3.8"
os:
- ubuntu-latest
- macos-latest
Expand Down Expand Up @@ -132,3 +131,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

done:
name: All Checks Passed
runs-on: ubuntu-latest
permissions: {}
needs: [validate-pr-title, build, coverage, gitleaks]
steps:
- name: Yey, all checks passed!
run: echo "All checks passed! :tada:"
19 changes: 8 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ repos:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 25.12.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
- repo: https://github.com/pycqa/flake8
rev: 7.3.0
rev: 7.1.2
hooks:
- id: flake8
additional_dependencies: [Flake8-pyproject]
Expand Down Expand Up @@ -64,18 +64,15 @@ repos:
- id: conventional-pre-commit
stages: [commit-msg]
args: [--strict]
- repo: https://github.com/ubersan/pylic
rev: v5.0.1
hooks:
- id: pylic
files: ^(pyproject\.toml|requirements.*\.txt)$
- repo: local
hooks:
- id: print_statement
name: Check that print statement isnt in source code
types: [python]
entry: "print"
language: pygrep
- id: liccheck
name: Run Python License Checker
description: Check license compliance of python requirements
entry: poetry
args: [run, liccheck, --level, paranoid]
language: system
files: ^(.*requirements.*\.txt|setup\.cfg|setup\.py|pyproject\.toml|liccheck\.ini)$
pass_filenames: false
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ for a backend written in python. You can read more on the [Descope Website](http

## Requirements

The SDK supports Python 3.8.1 and above.
The SDK supports Python 3.9 and above.

## Installing the SDK

Expand Down Expand Up @@ -1884,7 +1884,7 @@ You can find various usage samples in the [samples folder](https://github.com/de

### Prerequisites

- Python 3.8.1 or higher
- Python 3.9 or higher
- [Poetry](https://python-poetry.org) installed

### Install dependencies
Expand Down
36 changes: 0 additions & 36 deletions liccheck.ini

This file was deleted.

728 changes: 16 additions & 712 deletions poetry.lock

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
Expand All @@ -29,39 +28,29 @@ packages = [{ include = "descope" }]
[tool.poetry.extras]
Flask = ["Flask"]


[tool.poetry.urls]
"Bug Tracker" = "https://github.com/descope/python-sdk/issues"


[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
python = ">=3.9,<4.0"
httpx = "^0.28.0"
certifi = "*"
pyjwt = { version = ">=2.4.0", extras = ["crypto"] }
email-validator = [{ version = ">=2,<3", python = ">=3.8" }]
liccheck = "^0.9.1"
email-validator = ">=2,<3"
Flask = ">=2"

[tool.poetry.group.dev.dependencies]
mock = "5.2.0"
pre-commit = [
{ version = "<3.0.0", python = "<3.9" },
{ version = "3.6.0", python = ">=3.9" },
]
pre-commit = "3.6.0"
flake8 = "7.1.2"
flake8-pyproject = "1.2.4"
flake8-bugbear = "24.12.12"
liccheck = "0.9.2"
isort = "5.13.2"
pep8-naming = "0.14.1"
tox = "4.25.0"

[tool.poetry.group.format.dependencies]
black = [
{ version = "<24.10.0", python = "<3.9" },
{ version = "24.10.0", python = ">=3.9" },
]
black = "24.10.0"

[tool.poetry.group.types.dependencies]
mypy = "1.11.2"
Expand Down Expand Up @@ -93,3 +82,13 @@ profile = "black"
per-file-ignores = "__init__.py:F401"
ignore = "E501,N818,W503"
max-line-length = 120

[tool.pylic]
safe_licenses = [
"MIT License",
"MIT",
"ISC License (ISCL)",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
Comment thread
omercnet marked this conversation as resolved.
]
Comment thread
omercnet marked this conversation as resolved.
Loading
Loading