Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
da85f290
"experiments/vscode:/vscode.git/clone" did not exist on "d251cb62f45bfa72a0cf64418a9c2c2a61b962ee"
Commit
da85f290
authored
Aug 25, 2023
by
Ethan Smith
Browse files
First clean mypy run, disable all errors
parent
2f870265
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+6
-0
mypy.ini
mypy.ini
+29
-0
No files found.
.pre-commit-config.yaml
View file @
da85f290
...
...
@@ -43,3 +43,9 @@ repos:
.*\.json|ignore.txt
)$
args
:
[
--check-filenames
,
--check-hidden
,
--ignore-words=ignore.txt
]
-
repo
:
https://github.com/pre-commit/mirrors-mypy
rev
:
v1.5.1
hooks
:
-
id
:
mypy
additional_dependencies
:
[
"
.[sentencepiece,multilingual,promptsource,gptq]"
,
"
types-PyYAML"
,
"
types-requests"
]
exclude
:
^tests/.*$
mypy.ini
0 → 100644
View file @
da85f290
[mypy]
python_version
=
3.9
show_traceback
=
True
check_untyped_defs
=
True
no_implicit_reexport
=
True
warn_unreachable
=
True
warn_unused_configs
=
True
warn_unused_ignores
=
True
warn_redundant_casts
=
True
# We ignore errors everywhere to gradually add type annotations
[mypy-lm_eval.*]
ignore_errors
=
True
[mypy-lm_eval.api.*]
ignore_errors
=
True
[mypy-lm_eval.prompts.*]
ignore_errors
=
True
[mypy-lm_eval.models.*]
ignore_errors
=
True
[mypy-scripts.*]
ignore_errors
=
True
[mypy-main]
ignore_errors
=
True
\ No newline at end of file
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