Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amundsen_dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Surendar Reddy Mangannagari
amundsen_dev
Commits
d020ba22
Commit
d020ba22
authored
Jan 15, 2020
by
Alyssa
Committed by
Tao Feng
Jan 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add mypy coverage to test files and cleanup (#369)
parent
664f39f4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
.travis.yml
.travis.yml
+1
-1
Makefile
Makefile
+1
-1
installation.md
docs/installation.md
+1
-1
public.Dockerfile
public.Dockerfile
+2
-2
requirements.txt
requirements.txt
+0
-0
setup.cfg
setup.cfg
+1
-1
setup.py
setup.py
+1
-1
test_user.py
tests/unit/models/test_user.py
+1
-1
No files found.
.travis.yml
View file @
d020ba22
...
@@ -6,7 +6,7 @@ matrix:
...
@@ -6,7 +6,7 @@ matrix:
env
:
env
:
-
IS_DEPLOYABLE=true
-
IS_DEPLOYABLE=true
install
:
install
:
-
pip3 install -r requirements
3
.txt
-
pip3 install -r requirements.txt
-
pip3 install codecov
-
pip3 install codecov
script
:
script
:
-
make test
-
make test
...
...
Makefile
View file @
d020ba22
...
@@ -18,7 +18,7 @@ lint:
...
@@ -18,7 +18,7 @@ lint:
.PHONY
:
mypy
.PHONY
:
mypy
mypy
:
mypy
:
mypy
--ignore-missing-imports
--follow-imports
=
skip
--strict-optional
--warn-no-return
amundsen_application
mypy
--ignore-missing-imports
--follow-imports
=
skip
--strict-optional
--warn-no-return
.
.PHONY
:
test
.PHONY
:
test
test
:
test_unit lint mypy
test
:
test_unit lint mypy
...
...
docs/installation.md
View file @
d020ba22
...
@@ -16,7 +16,7 @@ $ cd ../../
...
@@ -16,7 +16,7 @@ $ cd ../../
# Install python resources
# Install python resources
$
python3
-m
venv venv
$
python3
-m
venv venv
$
source
venv/bin/activate
$
source
venv/bin/activate
$
pip3
install
-r
requirements
3
.txt
$
pip3
install
-r
requirements.txt
$
python3 setup.py
install
$
python3 setup.py
install
# Start server
# Start server
...
...
public.Dockerfile
View file @
d020ba22
...
@@ -12,8 +12,8 @@ FROM python:3.7-slim as base
...
@@ -12,8 +12,8 @@ FROM python:3.7-slim as base
WORKDIR /app
WORKDIR /app
RUN pip3 install gunicorn
RUN pip3 install gunicorn
COPY requirements
3.txt /app/requirements3
.txt
COPY requirements
.txt /app/requirements
.txt
RUN pip3 install -r requirements
3
.txt
RUN pip3 install -r requirements.txt
COPY --from=node-stage /app /app
COPY --from=node-stage /app /app
COPY . /app
COPY . /app
...
...
requirements
3
.txt
→
requirements.txt
View file @
d020ba22
File moved
setup.cfg
View file @
d020ba22
...
@@ -9,7 +9,7 @@ ignore = NONE
...
@@ -9,7 +9,7 @@ ignore = NONE
max-line-length = 120
max-line-length = 120
[tool:pytest]
[tool:pytest]
addopts = --cov=amundsen_application --cov-fail-under=7
0
--cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv
addopts = --cov=amundsen_application --cov-fail-under=7
5
--cov-report=term-missing:skip-covered --cov-report=xml --cov-report=html -vvv
[coverage:run]
[coverage:run]
branch = True
branch = True
...
...
setup.py
View file @
d020ba22
...
@@ -30,7 +30,7 @@ def build_js() -> None:
...
@@ -30,7 +30,7 @@ def build_js() -> None:
build_js
()
build_js
()
requirements_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'requirements
3
.txt'
)
requirements_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
'requirements.txt'
)
with
open
(
requirements_path
)
as
requirements_file
:
with
open
(
requirements_path
)
as
requirements_file
:
requirements
=
requirements_file
.
readlines
()
requirements
=
requirements_file
.
readlines
()
...
...
tests/unit/models/test_user.py
View file @
d020ba22
...
@@ -7,7 +7,7 @@ app = flask.Flask(__name__)
...
@@ -7,7 +7,7 @@ app = flask.Flask(__name__)
app
.
config
.
from_object
(
'amundsen_application.config.LocalConfig'
)
app
.
config
.
from_object
(
'amundsen_application.config.LocalConfig'
)
def
mock_get_profile_url
(
app
)
:
def
mock_get_profile_url
(
app
:
str
)
->
str
:
return
'testUrl'
return
'testUrl'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment