Skip to content

Commit

Permalink
chore: Add some new Python source files (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Apr 26, 2023
1 parent 59c0be6 commit e17df49
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
24 changes: 24 additions & 0 deletions dictionaries/python/cspell-tools.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/packages/cspell-tools/cspell-tools.config.schema.json

targets:
- name: python
# "build-python": "cspell-tools-cli compile \"src/python/*.txt\" \"src/additional_words.txt\" --split --keep-raw-case --merge python -o .",
sources:
- filename: src/python/python-lib.txt
split: true
- filename: src/python/python.txt
split: true
- src/additional_words.txt
- src/common_packages.txt
- src/data_science.txt
format: plaintext
targetDirectory: "."
compress: true

- name: python-common
# "build-common": "cspell-tools-cli compile \"src/common/*.txt\" --keep-raw-case --merge python-common -o .",
sources:
- src/common/extra.txt
targetDirectory: .
format: plaintext
compress: true
4 changes: 1 addition & 3 deletions dictionaries/python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
"./cspell-ext.json": "./cspell-ext.json"
},
"scripts": {
"build": "yarn run build-python && yarn run build-common",
"build-python": "cspell-tools-cli compile \"src/python/*.txt\" \"src/additional_words.txt\" --split --keep-raw-case --merge python -o .",
"build-common": "cspell-tools-cli compile \"src/common/*.txt\" --keep-raw-case --merge python-common -o .",
"build": "yarn cspell-tools-cli build",
"test-dictionary": "cspell -v -c ./cspell-ext.json --local=en --languageId=python \"src/python/py*.txt\"",
"test-samples": "cspell -v -c ./cspell-ext.json \"samples/**/*.py\"",
"test": "yarn run test-dictionary && yarn run test-samples",
Expand Down
1 change: 1 addition & 0 deletions dictionaries/python/src/common_packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Common Packages and Exports
1 change: 1 addition & 0 deletions dictionaries/python/src/data_science.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Data Since Related Terms

0 comments on commit e17df49

Please sign in to comment.