Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
jupyterhub-paris-saclay
image
Commits
8195160a
Commit
8195160a
authored
Feb 03, 2021
by
Nicolas M. Thiéry
Browse files
Check nbgrader version + PEP 8 + mypy config
parent
fb85308f
Pipeline
#102538
passed with stage
in 10 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
mypy.ini
mypy.ini
+9
-0
test_python_packages.py
test_python_packages.py
+10
-3
No files found.
mypy.ini
0 → 100644
View file @
8195160a
[mypy]
warn_return_any
=
True
warn_unused_configs
=
True
disallow_untyped_defs
=
True
disallow_untyped_calls
=
True
disallow_incomplete_defs
=
True
check_untyped_defs
=
True
no_implicit_optional
=
True
scripts_are_modules
=
True
test_python_packages.py
View file @
8195160a
def
test_python_version
():
def
test_python_version
()
->
None
:
import
sys
assert
sys
.
version_info
.
major
==
3
assert
sys
.
version_info
.
minor
==
8
def
test_tensorflow
():
import
tensorflow
def
test_tensorflow
()
->
None
:
import
tensorflow
# type: ignore
tensorflow
def
test_nbgrader
()
->
None
:
import
nbgrader
# type: ignore
assert
nbgrader
.
version_info
==
(
0
,
7
,
0
,
'dev'
)
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