-
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 #13 from itepifanio/mypy
Rollback ruff version to avoid nbqa warning. Add pre-commit
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: run-lint | ||
name: Run lint | ||
entry: bash -c 'nbqa ruff --fix nbs/*.ipynb' | ||
language: system | ||
pass_filenames: false | ||
- id: run-mypy | ||
name: Run mypy | ||
entry: bash -c 'nbqa mypy nbs/*.ipynb' | ||
language: system | ||
pass_filenames: false | ||
- id: run-tests | ||
name: Run Tests | ||
entry: nbdev_test | ||
language: system | ||
pass_filenames: false |
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,5 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
|
||
[mypy-path.jsonschema] | ||
ignore_errors = True |
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