Skip to content

Commit 9a66efd

Browse files
committed
chore: apply pre-commit fixes
Automated update of shared files from the social-core repository, see https://github.com/python-social-auth/.github/blob/main/repo-sync.py
1 parent 885e55a commit 9a66efd

File tree

3 files changed

+42
-45
lines changed

3 files changed

+42
-45
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,31 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## [Unreleased](https://github.com/python-social-auth/social-app-flask-sqlalchemy/commits/master)
99

1010
### Changed
11+
1112
- Modified model and access code to work with SQLAlchemy version 2 (Issue #3)
1213
- Updated packaging information files per PEP 517, PEP 518 (Issue #4)
1314
- Restricted Python minimum working version to 3.7 or higher to align with SQLAlchemy 2 (Issue #3)
1415

1516
## [1.0.1](https://github.com/python-social-auth/social-app-flask-sqlalchemy/releases/tag/1.0.1) - 2017-01-29
1617

1718
### Added
19+
1820
- Missing social-auth-storage-sqlalchemy dependency
1921

2022
## [1.0.0](https://github.com/python-social-auth/social-app-flask-sqlalchemy/releases/tag/1.0.0) - 2017-01-22
2123

2224
### Added
25+
2326
- Added partial pipeline db storage solution
2427

2528
### Changed
29+
2630
- Allow apps to have any type of user_id field (port of [#1040](https://github.com/omab/python-social-auth/pull/1040)
2731
by prmtl)
2832

2933
## [0.0.1](https://github.com/python-social-auth/social-app-flask-sqlalchemy/releases/tag/0.0.1) - 2016-11-27
3034

3135
### Changed
36+
3237
- Split from the monolitic [python-social-auth](https://github.com/omab/python-social-auth)
3338
codebase

pyproject.toml

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
11
[build-system]
2-
requires = ["setuptools"]
32
build-backend = "setuptools.build_meta"
3+
requires = ["setuptools"]
4+
5+
[options]
6+
zip_safe = false
47

58
[project]
6-
name = 'social-auth-app-flask-sqlalchemy'
7-
dynamic = ["version"]
8-
dependencies = [
9-
"six",
10-
"sqlalchemy",
11-
"social-auth-core>=1.0.0",
12-
"social-auth-app-flask>=1.0.0",
13-
"social-auth-storage-sqlalchemy>=1.0.1",
14-
]
159
authors = [
1610
{name = "Matias Aguirre", email = "[email protected]"},
17-
{name = "Lee Ji-ho", email = "[email protected]"},
11+
{name = "Lee Ji-ho", email = "[email protected]"}
12+
]
13+
classifiers = [
14+
'Development Status :: 4 - Beta',
15+
'Topic :: Internet',
16+
'License :: OSI Approved :: BSD License',
17+
'Intended Audience :: Developers',
18+
'Environment :: Web Environment',
19+
'Programming Language :: Python',
20+
'Programming Language :: Python :: 3.7',
21+
'Programming Language :: Python :: 3.8',
22+
'Programming Language :: Python :: 3.9',
23+
'Programming Language :: Python :: 3.10',
24+
'Programming Language :: Python :: 3.11',
25+
'Programming Language :: Python :: 3.12'
26+
]
27+
dependencies = [
28+
"six",
29+
"sqlalchemy",
30+
"social-auth-core>=1.0.0",
31+
"social-auth-app-flask>=1.0.0",
32+
"social-auth-storage-sqlalchemy>=1.0.1"
1833
]
1934
description = 'Python Social Authentication, SQLAlchemy Flask models integration.'
20-
license = {text = 'BSD'}
35+
dynamic = ["version"]
2136
keywords = ["flask", "sqlalchemy", "social auth"]
37+
license = {text = 'BSD'}
38+
name = 'social-auth-app-flask-sqlalchemy'
2239
readme = "README.md"
23-
classifiers=[
24-
'Development Status :: 4 - Beta',
25-
'Topic :: Internet',
26-
'License :: OSI Approved :: BSD License',
27-
'Intended Audience :: Developers',
28-
'Environment :: Web Environment',
29-
'Programming Language :: Python',
30-
'Programming Language :: Python :: 3.7',
31-
'Programming Language :: Python :: 3.8',
32-
'Programming Language :: Python :: 3.9',
33-
'Programming Language :: Python :: 3.10',
34-
'Programming Language :: Python :: 3.11',
35-
'Programming Language :: Python :: 3.12'
36-
]
3740
requires-python = ">= 3.7"
3841

3942
[project.urls]
40-
Repository = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy'
43+
Changelog = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy/blob/master/CHANGELOG.md'
4144
Documentation = 'http://python-social-auth.readthedocs.org'
4245
Issues = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy/issues'
43-
Changelog = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy/blob/master/CHANGELOG.md'
46+
Repository = 'https://github.com/python-social-auth/social-app-flask-sqlalchemy'
4447

45-
[options]
46-
zip_safe = false
48+
[tool.flake8]
49+
# Ignore some well known paths
50+
exclude = ['.venv', '.tox', 'dist', 'doc', 'build', '*.egg', 'db/env.py', 'db/versions/*.py', 'site', 'Pipfile', 'Pipfile.lock']
51+
max-line-length = 79
4752

4853
[tool.setuptools]
4954
include-package-data = true
5055

51-
[tool.setuptools.packages]
52-
find = {}
53-
5456
[tool.setuptools.dynamic]
5557
version = {attr = "social_flask_sqlalchemy.__version__"}
5658

57-
[tool.flake8]
58-
max-line-length = 79
59-
# Ignore some well known paths
60-
exclude = ['.venv','.tox','dist','doc','build','*.egg','db/env.py','db/versions/*.py','site','Pipfile','Pipfile.lock']
59+
[tool.setuptools.packages]
60+
find = {}

social_flask_sqlalchemy/models.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,18 @@ def username_max_length(cls):
5454
class Nonce(_AppSession, SQLAlchemyNonceMixin):
5555
"""One use numbers"""
5656

57-
pass
58-
5957

6058
class Association(_AppSession, SQLAlchemyAssociationMixin):
6159
"""OpenId account association"""
6260

63-
pass
64-
6561

6662
class Code(_AppSession, SQLAlchemyCodeMixin):
6763
"""Mail validation single one time use code"""
6864

69-
pass
70-
7165

7266
class Partial(_AppSession, SQLAlchemyPartialMixin):
7367
"""Partial pipeline storage"""
7468

75-
pass
76-
7769

7870
class FlaskStorage(BaseSQLAlchemyStorage):
7971
user = UserSocialAuth

0 commit comments

Comments
 (0)