-
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 #202 from unicef/develop
v2.1
- Loading branch information
Showing
114 changed files
with
3,070 additions
and
2,076 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ max-line-length = 120 | |
|
||
exclude = | ||
*/migrations, | ||
|
||
ignore = | ||
W503, | ||
# line break before binary operator |
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,20 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
stages: [commit] | ||
- repo: https://github.com/ambv/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
args: [--config=backend/pyproject.toml] | ||
exclude: "migrations|snapshots" | ||
stages: [commit] | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--config=backend/.flake8] | ||
additional_dependencies: [flake8-bugbear==22.9.23] | ||
stages: [ commit ] |
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
Large diffs are not rendered by default.
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
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,4 +1,4 @@ | ||
ARG BASE_IMAGE=2.0 | ||
ARG BASE_IMAGE=2.1 | ||
|
||
FROM unicef/donor-reporting-portal-backend:${BASE_IMAGE}-base | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[tool.black] | ||
line-length = 120 | ||
exclude = ''' | ||
/( | ||
\.git | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| build | ||
| dist | ||
| migrations | ||
)/ | ||
''' |
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 |
---|---|---|
|
@@ -8,14 +8,14 @@ | |
from setuptools import find_packages, setup | ||
|
||
ROOT = os.path.realpath(os.path.dirname(__file__)) | ||
init = os.path.join(ROOT, 'src', 'donor_reporting_portal', '__init__.py') | ||
_version_re = re.compile(r'__version__\s+=\s+(.*)') | ||
_name_re = re.compile(r'NAME\s+=\s+(.*)') | ||
init = os.path.join(ROOT, "src", "donor_reporting_portal", "__init__.py") | ||
_version_re = re.compile(r"__version__\s+=\s+(.*)") | ||
_name_re = re.compile(r"NAME\s+=\s+(.*)") | ||
|
||
sys.path.insert(0, os.path.join(ROOT, 'src')) | ||
sys.path.insert(0, os.path.join(ROOT, "src")) | ||
|
||
with open(init, 'rb') as f: | ||
content = f.read().decode('utf-8') | ||
with open(init, "rb") as f: | ||
content = f.read().decode("utf-8") | ||
VERSION = str(ast.literal_eval(_version_re.search(content).group(1))) | ||
NAME = str(ast.literal_eval(_name_re.search(content).group(1))) | ||
|
||
|
@@ -24,24 +24,23 @@ | |
setup( | ||
name=NAME, | ||
version=VERSION, | ||
author='UNICEF', | ||
author_email='[email protected]', | ||
url='', | ||
description='', | ||
long_description=open(os.path.join(ROOT, 'README.rst')).read(), | ||
package_dir={'': 'src'}, | ||
packages=find_packages('src'), | ||
author="UNICEF", | ||
author_email="[email protected]", | ||
url="", | ||
description="", | ||
long_description=open(os.path.join(ROOT, "README.rst")).read(), | ||
package_dir={"": "src"}, | ||
packages=find_packages("src"), | ||
zip_safe=False, | ||
dependency_links=list(dependency_links), | ||
license='BSD', | ||
license="BSD", | ||
include_package_data=True, | ||
classifiers=[ | ||
'Operating System :: POSIX :: Linux', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Framework :: Django', | ||
'Framework :: Django :: 4.0', | ||
'Framework :: Flake8', | ||
"Operating System :: POSIX :: Linux", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.11", | ||
"Framework :: Django", | ||
"Framework :: Django :: 4.0", | ||
"Framework :: Flake8", | ||
], | ||
) |
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,2 +1,2 @@ | ||
NAME = 'donor-reporting-portal' | ||
VERSION = __version__ = '2.0.3' | ||
NAME = "donor-reporting-portal" | ||
VERSION = __version__ = "2.1" |
Oops, something went wrong.