Leetgo-py

Latest version: v0.2.4

Safety actively analyzes 638741 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

1.3.2

Changelog
Bug fixes
* f07e68c38636092651e43efd7a82ae39d50f0a58: fix: editor args substitute issue (j178)

1.3.1

Changelog
Features
* 0fcbfd04b66e418420eee72cf574fed9e6b86101: feat: improve shell completions (j178)
* c8760c093836d52ce749ebcf771c18d55d2c4ec1: feat: auto complete upcoming contests (j178)
Bug fixes
* 92f1dd0a70c124d5506b95f8690e302180bff3f2: fix: `leetgo init` flag issue (j178)

1.3

Changelog
Features
* fe23a4ed95f5598923eb4a42d74bbe6d258a668d: feat: improve any order detection (j178)
* 3882fe64e8cb17099b785971748d70edf51ebbaf: feat: improve logging and color sytle (198) (j178)
* 041f6e9029015ffc193453c129742cdab9a500a3: feat: add `--skip-editor` to `leetgo pick` (j178)
* 1244c1706403b5908cafb2b88a216f04aabee077: feat: add leetgo version to generated file (j178)
* 3c97c3c3a2c832211c60d65997c37bc38b9a2d0d: feat: support subgroup of files (200) (j178)
Bug fixes
* d4180c2eb94b4cce3f20b9898b9481cb81cca97b: fix: abort if global config not found (196) (j178)
* 4e5cdd05b29407f6582051fdde9685df2e2f5e9d: fix: question of date (`today-1`) not work (199) (j178)
* 555cdc3d29dd844cb73e0b55307dda1c305e73a6: fix: editor substitute arguments (j178)
* 2f2aef8859c6d8d656141a162ea68e2f324c74e0: fix: don't run preRun for auto command (j178)
Others
* 4b4b166ff194b6942a124f2a083c19ab5ba4aa1d: chore: tweak ci workflow (j178)
* 557e0d79a7837ad31cd68c30ba69305f6871237c: chore: skip golang-ci-lint pkg cache (j178)
* 5b1e92fd0beef422c68be43fbe51d0b12bef7cd7: chore: use Passed for cases (j178)
* 6dc687469f4d9d54ebe77d444874bc384bdc0a34: chore: bump kooky (j178)
* 84261c90ecdea46b19ef42572b04ef5aa2b7692a: chore: improve qid error message (j178)

1.2

Changelog
Features
* bf02024eb0b0cceb7b8c7e693e008d5995a1f2c0: feat: support specify browsers to read cookies (194) (j178)
* 52925fd5fa8fe2c93c5e9058eb906c9751bd5bdb: feat: continue if auth is not required (195) (j178)
Bug fixes
* 05c75d68c914878ff9047666715883fdfe13f6a4: fix: whoami error check (j178)
* 88d41433346d5691bf6a16dcbaab6a27c678150f: fix: LC US has no editorType field (j178)
Others
* bdd958861a6daa1619a8a920f0d0873ab1120f41: chore: fix goreleaser deprecations (j178)
* 6f4b233bff56570fa03d492dbacf31233699496d: chore: tweak log messages (j178)

1.1

Providing LeetCode cookies and password in config file is no longer supported. Previously you can provide cookies or password in the config file:
yaml
leetcode:
credentials:
from: cookies
session: xxx
csrftoken: xxx


Now, you should provide them through env variables instead:

sh
export LEETCODE_SESSION=xxx LEETCODE_CSRFTOKEN=xxx

yaml
leetcode:
credentials:
from: cookies


or

sh
export LEETCODE_USERNAME=xxx LEETCODE_PASSWORD=xxx

yaml
leetcode:
credentials:
from: password


Changelog

Features
* feat!: remove credentials from config file, read from env vars instead by j178 in https://github.com/j178/leetgo/pull/190
* feat: support {{.Folder}} in editor arguments by j178 in https://github.com/j178/leetgo/pull/185
* feat: add `LEETGO_HOME` by j178 in https://github.com/j178/leetgo/pull/192

Bug fixes
* fix: test whether user is signed in by j178 in https://github.com/j178/leetgo/pull/191

Others
* chore(deps): bump github.com/k3a/html2text from 1.1.0 to 1.2.1 by dependabot in https://github.com/j178/leetgo/pull/189
* chore(deps): bump github.com/mattn/go-sqlite3 from 1.14.16 to 1.14.17 by dependabot in https://github.com/j178/leetgo/pull/188
* chore(deps): bump github.com/charmbracelet/bubbles from 0.15.0 to 0.16.1 by dependabot in https://github.com/j178/leetgo/pull/187
* chore(deps): bump github.com/spf13/viper from 1.15.0 to 1.16.0 by dependabot in https://github.com/j178/leetgo/pull/186

**Full Changelog**: https://github.com/j178/leetgo/compare/v1.0...v1.1

1.0

Use single string for command arguments

We changed `code.cpp.cxxflags` and `editor.args` from array of string to a single string. If you upgraded from an older version, you will see error like this:

FATA unmarshal config failed: 2 error(s) decoding:

* 'code.cpp.cxxflags' expected type 'string', got unconvertible type '[]interface {}', value: '[-O2 -std=c++17]'
* 'editor.args' expected type 'string', got unconvertible type '[]interface {}', value: '[]'


You can manually fix this by changing `code.cpp.cxxflags` and `editor.args` to a signle string in `~/.config/leetgo/config.yaml`, or you can use
`leetgo init -f -t cn` to regenerate the global configuration.

Must specify opening files in custom editor arguments

For example:
yaml
editor:
use: custom
command: subl.exe
args: ""


In previous version, `leetgo` will open the generated code file using `subl.exe`. But in 1.0, you must specify which file to open, you can use
`{{.CodeFile}}`, `{{.TestFile}}`, `{{.DescriptionFile}}` or `{{.TestCasesFile}}` in `args` to open the specific file. Additionly, you can use `{{.Files}}` to open all generated files.
yaml
editor:
use: custom
command: subl.exe
args: "{{.Files}}"


Changelog
Features
* bb8469a3f84bcadd502d1d59467556208815c610: feat: support float result compare (177) (j178)
* 67e8f2d169f33b9ba5e7be2b79ebef7ce59f6385: feat: enhanced judger (178) (j178)
* c749bf7cfc9282d294c6470c0d13fdb080c07365: feat: make `editor.args` and `code.cpp.cxxflags` single string (174) (j178)
Bug fixes
* 816f307d82e5d82690b29a7bdae0dcbceb67f570: fix: handle files ends with \r\n on Windows (j178)
* c6487bc8f7894e7ddb60e2de94c4dcdc53bc50ec: fix: detect question editor type (j178)
* a74997a0885af91a38bbe5973235cd2d5ba4bd65: fix: add editorType when requesting questionData (j178)
* f677811ed491c0c7b0053763bad64eaf6c9ba1de: fix: remove timeout from leetgo fix (j178)
* 1956d6c67bdae7ea637f33505a3a91f65f0582ba: fix(rust): add return type conversion (176) (j178)
* a31ff86be26ad30b9e85d38a4d2428e59f289dda: fix: manually fix some metadata (170) (j178)
Others
* dba162f3f9dde75abc878f9d95e59af13467889d: chore(rust): bump version (j178)
* cfe6444ac07aa9d7c20255d541e210aa0d5bd0c2: chore: add more sub/super script letters (j178)
* 72b14e2466620783b22e630b6fb22bc5576a0d06: chore: cleanup (j178)
* a0b7239b67bd3296b357a2c8a06169d17263ff6c: chore(deps): bump github.com/j178/leetgo/testutils/go (180) (dependabot[bot])
* 084cf6e2c246a1eb0c51035d3131d1cc144e3fa2: chore(deps): bump github.com/charmbracelet/bubbletea (183) (dependabot[bot])
* 4fce0e67f3cb1f10a0652617233e96b986ac7ced: chore(deps): bump github.com/charmbracelet/log from 0.2.1 to 0.2.2 (182) (dependabot[bot])
* d5f6d755c41a0878c955bbcb55b6c40b26760995: chore(deps): bump github.com/zalando/go-keyring from 0.2.2 to 0.2.3 (179) (dependabot[bot])
* 303c1df5752fa5a73e3efb60a54a47fc0f60dcdd: chore(deps): bump github.com/pelletier/go-toml/v2 from 2.0.7 to 2.0.8 (181) (dependabot[bot])
* abb3045e983e707680094121b3f08372fe74a404: chore: tweak config comments (j178)

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.