Skip to content

Commit 7f94d83

Browse files
Add all tasks from datasets (#95)
* Sync some of the tasks from datasets * Align order * Address some suggestions from review * Everything is structured now * Fixes for huggingface/datasets#4154 cc @julien-c * [skip ci] Export `tasks.json` taxonomy to other libraries (#96) * This is not a Python repo anymore * Update README.md * rabbit hole: revert to package-lock.json lockfileVersion=1 (we use npm 6 stable for now) * rabbit hole: let's try this? * CI: Actually we should also build widgets in that case (they're broken currently) cc @mishig25 * Fix for new `tabular-classification` * `export-data.ts` endpoint * ci: trigger JS Interfaces CI run * Revert "ci: trigger JS Interfaces CI run" This reverts commit 34ac3e9. * move export-tasks to a simple script and run using `tsm` * Tweak order to the one from vscode > sort lines * one missing time_series => structured Co-authored-by: Julien Chaumond <julien@huggingface.co>
1 parent db87a77 commit 7f94d83

13 files changed

Lines changed: 272 additions & 2581 deletions

File tree

.github/workflows/js-interfaces-tests.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: JS Interfaces
33
on:
44
push:
55
paths:
6+
- "js/**"
67
- "js/src/lib/interfaces/**"
78
pull_request:
89
paths:
10+
- "js/**"
911
- "js/src/lib/interfaces/**"
1012

1113

@@ -22,12 +24,15 @@ jobs:
2224
uses: actions/setup-node@v1
2325
with:
2426
node-version: 14
25-
- run: sudo npm i -g typescript@4.2.2
26-
- run: node --version
27-
- run: tsc --version
28-
- name: Install deps
29-
run: npm i @types/node
30-
- name: Compile
27+
- working-directory: js
28+
run: |
29+
npm ci
30+
- name: Check that code compiles
3131
working-directory: ./js/src/lib/interfaces
3232
run: |
33-
time tsc *.ts --lib es6,es2016,es2017,es2018,esnext --target es2018 --module commonjs --outDir dist
33+
time npx tsc *.ts --lib es6,es2016,es2017,es2018,esnext --target es2018 --module commonjs --outDir dist
34+
- name: Run export-tasks script
35+
working-directory: js
36+
run: |
37+
npx tsm src/scripts/export-tasks.ts
38+
# copy/paste this JSON output to any repo that might need it.

.github/workflows/js-widgets-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
paths:
66
- "js/**"
7-
- "!js/src/lib/interfaces/**"
7+
# - "!js/src/lib/interfaces/**"
88

99
jobs:
1010
build:

.gitignore

Lines changed: 1 addition & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,4 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
5-
6-
# C extensions
7-
*.so
8-
9-
# Distribution / packaging
10-
.Python
11-
build/
12-
develop-eggs/
13-
dist/
14-
downloads/
15-
eggs/
16-
.eggs/
17-
lib64/
18-
parts/
19-
sdist/
20-
var/
21-
wheels/
22-
pip-wheel-metadata/
23-
share/python-wheels/
24-
*.egg-info/
25-
.installed.cfg
26-
*.egg
27-
MANIFEST
28-
29-
# PyInstaller
30-
# Usually these files are written by a python script from a template
31-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32-
*.manifest
33-
*.spec
34-
35-
# Installer logs
36-
pip-log.txt
37-
pip-delete-this-directory.txt
38-
39-
# Unit test / coverage reports
40-
htmlcov/
41-
.tox/
42-
.nox/
43-
.coverage
44-
.coverage.*
45-
.cache
46-
nosetests.xml
47-
coverage.xml
48-
*.cover
49-
*.py,cover
50-
.hypothesis/
51-
.pytest_cache/
52-
53-
# Translations
54-
*.mo
55-
*.pot
56-
57-
# Django stuff:
58-
*.log
59-
local_settings.py
60-
db.sqlite3
61-
db.sqlite3-journal
62-
63-
# Flask stuff:
64-
instance/
65-
.webassets-cache
66-
67-
# Scrapy stuff:
68-
.scrapy
69-
70-
# Sphinx documentation
71-
docs/_build/
72-
73-
# PyBuilder
74-
target/
75-
76-
# Jupyter Notebook
77-
.ipynb_checkpoints
78-
79-
# IPython
80-
profile_default/
81-
ipython_config.py
82-
83-
# pyenv
84-
.python-version
85-
86-
# pipenv
87-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
88-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
89-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
90-
# install all needed dependencies.
91-
#Pipfile.lock
92-
93-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
94-
__pypackages__/
95-
96-
# Celery stuff
97-
celerybeat-schedule
98-
celerybeat.pid
99-
100-
# SageMath parsed files
101-
*.sage.py
102-
103-
# Environments
104-
.env
105-
.venv
106-
env/
107-
venv/
108-
ENV/
109-
env.bak/
110-
venv.bak/
111-
112-
# Spyder project settings
113-
.spyderproject
114-
.spyproject
115-
116-
# Rope project settings
117-
.ropeproject
118-
119-
# mkdocs documentation
120-
/site
121-
122-
# mypy
123-
.mypy_cache/
124-
.dmypy.json
125-
dmypy.json
126-
127-
# Pyre type checker
128-
.pyre/
1+
node_modules/
1292
.vscode/
1303

1314
.DS_Store

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ This repository regroups frontend components, documentation and information that
55
In the different folders, you will find:
66
- Widgets and other frontend components in the `js` folder.
77
- The tasks as visible on the following page: [hf.co/tasks](https://hf.co/tasks) in the `tasks` folder.
8-
- The Hugging Face Hub documentation as visible here: [hf.co/docs/hub](https://hf.co/docs/hub)
8+
- In the `docs` folder, the Hugging Face Hub documentation as visible here: [hf.co/docs/hub](https://hf.co/docs/hub)

0 commit comments

Comments
 (0)