QubitPi commited on
Commit
c4e2447
1 Parent(s): 7f1b406

Enable stycle check in CI/CD

Browse files
.github/workflows/ci-cd.yaml CHANGED
@@ -34,25 +34,25 @@ jobs:
34
  with:
35
  access_token: ${{ github.token }}
36
 
37
- # yaml-lint:
38
- # name: YAML Style Check
39
- # runs-on: ubuntu-latest
40
- # steps:
41
- # - uses: actions/checkout@v3
42
- # - uses: actionshub/yamllint@main
43
- #
44
- # linkChecker:
45
- # name: Link Check
46
- # runs-on: ubuntu-latest
47
- # steps:
48
- # - uses: actions/checkout@v3
49
- # - name: Link Checker
50
- # uses: lycheeverse/[email protected]
51
- # with:
52
- # fail: true
53
 
54
  sync-to-huggingface-space:
55
- #needs: [yaml-lint, linkChecker]
56
  runs-on: ubuntu-latest
57
  steps:
58
  - uses: actions/checkout@v3
 
34
  with:
35
  access_token: ${{ github.token }}
36
 
37
+ yaml-lint:
38
+ name: YAML Style Check
39
+ runs-on: ubuntu-latest
40
+ steps:
41
+ - uses: actions/checkout@v3
42
+ - uses: actionshub/yamllint@main
43
+
44
+ linkChecker:
45
+ name: Link Check
46
+ runs-on: ubuntu-latest
47
+ steps:
48
+ - uses: actions/checkout@v3
49
+ - name: Link Checker
50
+ uses: lycheeverse/[email protected]
51
+ with:
52
+ fail: true
53
 
54
  sync-to-huggingface-space:
55
+ needs: [yaml-lint, linkChecker]
56
  runs-on: ubuntu-latest
57
  steps:
58
  - uses: actions/checkout@v3
.yamllint ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ extends: default
3
+ rules:
4
+ line-length:
5
+ max: 256
6
+ level: warning
7
+ document-start: disable
8
+ braces:
9
+ forbid: false
10
+ min-spaces-inside: 0
11
+ max-spaces-inside: 1
12
+ min-spaces-inside-empty: -1
13
+ max-spaces-inside-empty: -1
14
+ commas:
15
+ max-spaces-before: -1
16
+ min-spaces-after: 1
17
+ max-spaces-after: -1
18
+ brackets:
19
+ max-spaces-inside: -1
20
+ empty-lines:
21
+ max: 3
22
+ indentation:
23
+ spaces: 2
wiktionary/wiktextract/extract.py CHANGED
@@ -20,13 +20,7 @@ def extract_data(wiktextract_data_path: str):
20
  """
21
  Extract data from raw-wiktextract-data.jsonl useful for wilhelmlang.com.
22
 
23
- There will be 3 languages extracted, each of which in a dedicated .jsonl file:
24
-
25
- 1. German
26
- 2. Latin
27
- 3. Ancient Greek
28
-
29
- Each line of the JSONL file has the following fields:
30
 
31
  - term: the word of the language
32
  - pos: the Part of Speech of this word
 
20
  """
21
  Extract data from raw-wiktextract-data.jsonl useful for wilhelmlang.com.
22
 
23
+ Data of each language is written in a dedicated .jsonl file. Each line of the JSONL file has the following fields:
 
 
 
 
 
 
24
 
25
  - term: the word of the language
26
  - pos: the Part of Speech of this word