-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Env var
CMDICT_HISTORY
with any value will avoid history recording …
…in YAML (#173)
- Loading branch information
Showing
13 changed files
with
254 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
python-version: "3.8" | ||
- uses: snok/[email protected] | ||
with: | ||
version: 1.5.1 | ||
version: "1.5.1" | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
- name: Build wheels | ||
|
@@ -56,7 +56,7 @@ jobs: | |
python-version: "3.8" | ||
- uses: snok/[email protected] | ||
with: | ||
version: 1.5.1 | ||
version: "1.5.1" | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
- name: Increase version by one patch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,5 +144,4 @@ cython_debug/ | |
.idea/ | ||
db/stardict.csv | ||
**/.DS_Store | ||
.vscode/ | ||
|
||
.vscode/settings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.1.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 3.8.2 | ||
hooks: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: "22.6.0" | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v3.12.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
args: | ||
- --application-directories=src | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: "4.0.1" | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- 'flake8-builtins' | ||
- 'flake8-docstrings' | ||
- 'flake8-import-order' | ||
- 'pycodestyle' | ||
- 'pydocstyle' | ||
|
||
- repo: https://github.com/terrencepreilly/darglint | ||
rev: v1.8.1 | ||
hooks: | ||
- id: darglint | ||
- 'flake8-builtins' | ||
- 'flake8-docstrings' | ||
- 'pycodestyle' | ||
- 'pydocstyle' | ||
- repo: https://github.com/terrencepreilly/darglint | ||
rev: v1.8.1 | ||
hooks: | ||
- id: darglint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Python Debugger: Attach", | ||
"type": "debugpy", | ||
"request": "attach", | ||
"connect": { | ||
"host": "localhost", | ||
"port": 5678 | ||
} | ||
} | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "cmdict" | ||
version = "0.1.9" | ||
version = "0.1.10" | ||
description = "A command line dictionary toolset." | ||
authors = ["zequnyu <[email protected]>", "edxu96 <[email protected]>"] | ||
license = "GPL-3.0" | ||
|
@@ -35,6 +35,7 @@ optional = true | |
pytest = ">=7,<9" | ||
pytest-cov = ">=2.9,<6.0" | ||
pytest-xdist = ">=1.32,<4.0" | ||
debugpy = ">=1.8.1" | ||
|
||
[tool.poetry.group.check] | ||
optional = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
# Development Guide | ||
|
||
Connect to Python debugger in VS Code: | ||
|
||
```python | ||
poetry run python -m debugpy --listen 5678 --wait-for-client src/cmdict/__main__.py search banana | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters