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
chenpangpang
transformers
Commits
18eec3a9
Commit
18eec3a9
authored
Mar 23, 2020
by
Julien Chaumond
Browse files
[ci] simpler way to load correct version of isort
hat/tip @bramvanroy
parent
cf72479b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
.circleci/config.yml
.circleci/config.yml
+0
-2
setup.py
setup.py
+5
-3
No files found.
.circleci/config.yml
View file @
18eec3a9
...
@@ -85,8 +85,6 @@ jobs:
...
@@ -85,8 +85,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
# we need a version of isort with https://github.com/timothycrosley/isort/pull/1000
-
run
:
sudo pip install git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort
-
run
:
sudo pip install .[tf,torch,quality]
-
run
:
sudo pip install .[tf,torch,quality]
-
run
:
black --check --line-length 119 --target-version py35 examples templates tests src utils
-
run
:
black --check --line-length 119 --target-version py35 examples templates tests src utils
-
run
:
isort --check-only --recursive examples templates tests src utils
-
run
:
isort --check-only --recursive examples templates tests src utils
...
...
setup.py
View file @
18eec3a9
...
@@ -73,11 +73,13 @@ extras["serving"] = ["pydantic", "uvicorn", "fastapi", "starlette"]
...
@@ -73,11 +73,13 @@ extras["serving"] = ["pydantic", "uvicorn", "fastapi", "starlette"]
extras
[
"all"
]
=
extras
[
"serving"
]
+
[
"tensorflow"
,
"torch"
]
extras
[
"all"
]
=
extras
[
"serving"
]
+
[
"tensorflow"
,
"torch"
]
extras
[
"testing"
]
=
[
"pytest"
,
"pytest-xdist"
]
extras
[
"testing"
]
=
[
"pytest"
,
"pytest-xdist"
]
extras
[
"quality"
]
=
[
"black"
,
"isort @ git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort"
,
"flake8"
]
extras
[
"docs"
]
=
[
"recommonmark"
,
"sphinx"
,
"sphinx-markdown-tables"
,
"sphinx-rtd-theme"
]
extras
[
"docs"
]
=
[
"recommonmark"
,
"sphinx"
,
"sphinx-markdown-tables"
,
"sphinx-rtd-theme"
]
extras
[
"dev"
]
=
extras
[
"testing"
]
+
extras
[
"quality"
]
+
[
"mecab-python3"
,
"scikit-learn"
,
"tensorflow"
,
"torch"
]
extras
[
"dev"
]
=
extras
[
"testing"
]
+
extras
[
"quality"
]
+
[
"mecab-python3"
,
"scikit-learn"
,
"tensorflow"
,
"torch"
]
extras
[
"quality"
]
=
[
"black"
,
"isort @ git+git://github.com/timothycrosley/isort.git@e63ae06ec7d70b06df9e528357650281a3d3ec22#egg=isort"
,
"flake8"
,
]
setup
(
setup
(
name
=
"transformers"
,
name
=
"transformers"
,
...
...
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