Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip pre-commit check for enwiki convert skip to have code parity #32

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
default_language_version:
python: python3
# Skip the pre-commit check for below directories to have
# a consistency with the official tfrecord preprocessing scripts
exclude: '^(streaming/text/convert/enwiki/)'
repos:
- repo: https://github.com/google/yapf
rev: v0.32.0
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include = [
exclude = [
"build/**",
"node_modules/**",
"streaming/text/convert/enwiki/**"
]

reportUnnecessaryIsInstance = "warning"
Expand Down
5 changes: 2 additions & 3 deletions streaming/text/enwiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

"""English Wikipedia 2020-01-01 streaming dataset."""

import numpy as np
from typing import Any, Dict, Optional
from typing import Any, Optional

from transformers.models.auto.tokenization_auto import AutoTokenizer
knighton marked this conversation as resolved.
Show resolved Hide resolved
import numpy as np

from streaming.base import Dataset

Expand Down