generated from JimFawkes/python-template
-
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.
Merge pull request #7 from JimFawkes/upgrade-versions
Upgrade versions
- Loading branch information
Showing
13 changed files
with
97 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,36 @@ | ||
default_language_version: | ||
python: python3 | ||
|
||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: stable | ||
rev: "22.12.0" | ||
hooks: | ||
- id: black | ||
language_version: python3.8 | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: "5.11.4" | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: "v0.991" | ||
hooks: | ||
- id: mypy | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: "v4.3.0" | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: "v1.9.0" | ||
hooks: | ||
- id: python-no-log-warn | ||
- id: python-no-eval | ||
- id: python-use-type-annotations |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
[tool.black] | ||
line-length = 100 | ||
target-version = ["py38"] | ||
target-version = ["py310"] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
|
@@ -23,6 +23,9 @@ exclude = ''' | |
)/ | ||
''' | ||
|
||
[tool.mypy] | ||
ignore_missing_imports=true | ||
|
||
[build-system] | ||
requires = ["flit_core >=2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
@@ -32,26 +35,27 @@ module="secret_loader" | |
author="Moritz Eilfort" | ||
author-email="[email protected]" | ||
home-page="https://github.com/JimFawkes/secret-loader" | ||
requires=[ | ||
"boto3==1.13.16", | ||
"botocore==1.16.16", | ||
"python-dotenv==0.13.0", | ||
requires= [ | ||
"boto3 <1.27, >1.13", | ||
"python-dotenv <0.22, >0.13", | ||
] | ||
requires-python=">=3.7" | ||
requires-python=">=3.9" | ||
description-file="README.md" | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
'Natural Language :: English', | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
|
||
[tool.flit.metadata.requires-extra] | ||
test=[ | ||
"pytest==5.4.2", | ||
"pytest-cov", | ||
test= [ | ||
"pytest==7.2.0", | ||
"pytest-cov==4.0.0" | ||
|
||
] | ||
|
||
[tool.flit.entrypoints.console_scripts] | ||
|
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,17 @@ | ||
# Development Requirements | ||
|
||
# Base | ||
boto3==1.26.35 | ||
python-dotenv==0.21.0 | ||
|
||
# Testing | ||
pytest==7.2.0 | ||
pytest-cov==4.0.0 | ||
|
||
# Formatting, Liniting, etc. | ||
black==22.12 | ||
bandit==1.7.4 | ||
mypy==0.991 | ||
pre-commit==2.20.0 | ||
pyflakes==3.0.1 | ||
pylama==8.4.1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,17 +5,14 @@ | |
GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
""" | ||
|
||
__version__ = "0.5" | ||
__version__ = "0.6" | ||
__author__ = "Moritz Eilfort" | ||
__author_email__ = "[email protected]" | ||
__url__ = "github.com/JimFawkes/secret-loader" | ||
__license__ = "GPLv3+" | ||
__copyright__ = f"Copyright 2020 {__author__}" | ||
|
||
from . import loaders | ||
from . import base | ||
from . import exceptions | ||
from . import secrets | ||
from . import base, exceptions, loaders, secrets | ||
|
||
secret = secrets.secret | ||
|
||
|
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