-
access-member-before-definition
/E0203
-
anomalous-unicode-escape-in-string
/W1402
-
arguments-out-of-order
/W1114
-
arguments-renamed
/W0237
-
attribute-defined-outside-init
/W0201
-
bad-builtin
/W0141
-
bad-chained-comparison
/W3601
-
bad-except-order
/E0701
-
bad-file-encoding
/C2503
-
bad-indentation
/W0311
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
main.py:3: error: No overload variant of "max" matches argument types "float", "None" [call-overload] | |
main.py:3: note: Possible overload variants: | |
main.py:3: note: def [SupportsRichComparisonT] max(SupportsRichComparisonT, SupportsRichComparisonT, /, *_args: SupportsRichComparisonT, key: None = ...) -> SupportsRichComparisonT | |
main.py:3: note: def [_T] max(_T, _T, /, *_args: _T, key: Callable[[_T], Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]]) -> _T | |
main.py:3: note: def [SupportsRichComparisonT] max(Iterable[SupportsRichComparisonT], /, *, key: None = ...) -> SupportsRichComparisonT | |
main.py:3: note: def [_T] max(Iterable[_T], /, *, key: Callable[[_T], Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]]) -> _T | |
main.py:3: note: def [SupportsRichComparisonT, _T] max(Iterable[SupportsRichComparisonT], /, *, key: None = ..., default: _T) -> Union[SupportsRichComparisonT, _T] | |
main.py:3: note: def [_T1, _T2] max(Iterable[_T1], /, *, key: Callable[[_T1], Union[SupportsDunderLT[Any], S |
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
import subprocess | |
pipeline = [ | |
'curl https://api.github.com/repos/astral-sh/ruff/issues/970', | |
'jq -r .body', | |
"grep -F '[ ]'", | |
"grep -v '\~'", | |
] | |
cmd = " | ".join(pipeline) | |
missing = {} |
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
------------- Instructions ------------- | |
-- -- Video Demonstration: https://www.youtube.com/watch?v=M4t7HYS73ZQ | |
-- | |
-- -- Open clipboard inserter https://anacreondjt.gitlab.io/docs/texthooker/ | |
-- -- Open your anime with japanese subtitles in MPV | |
-- -- Wait for unknown word and add it to anki through yomichan | |
-- -- Select all the subtitle lines you wish to add to the card. | |
-- -- Ctrl + c | |
-- -- Tab back to MPV and Ctrl + v | |
-- -- Done. The lines, their respective Audio and the current paused image |
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
data/environment/arc_None_res6690794553:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Berkanavt/bin/scripts" VSLANG="1033" ZERO_AR_DATE="1" "/home/sandbox/.cache/cargo-zigbuild/0.19.1/zigcc-x86_64-apple-darwin-1c41.sh" "-arch" "x86_64" "-m64" "/tmp/rustcmNzciC/symbols.o" "/build/ruff/target/x86_64-apple-darwin/release/deps/ruff-819e5380c37c2ce4.2jag2ek1hu4h3y1.rcgu.o" "/build/ruff/target/x86_64-apple-darwin/release/deps/ruff-819e5380c37c2ce4.addr2line-49f48c8353cb63cf.addr2line.7b72c2b7a73e3fb3-cgu.0.rcgu.o.rcgu.o" "/build/ruff/target/x86_64-apple-darwin/release/deps/ruff-819e5380c37c2ce4.adler-52c973eaba43f28d.adler.7d99f3e84a1eecf-cgu.0.rcgu.o.rcgu.o" "/build/ruff/target/x86_64-apple-darwin/release/deps/ruff-819e5380c37c2ce4.ahash-e7cfbcea473bf07e.ahash.17001e649140c23e-cgu.0.rcgu.o.rcgu.o" "/build/ruff/target/x86_64-apple-darwin/release/deps/ruff-819e5380c37c2ce4.ahash-e7cfbcea473bf07e.ahash.17001e649140c23e-cgu.1.rcgu.o.rcgu.o" "/build/ruff/target/x86_64-apple-darwin/release/deps/ruff-819e |
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
import json | |
import orjson | |
import pickle | |
import time | |
import contextlib | |
DATA = [] | |
@contextlib.contextmanager |
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
python3.11 -m datamodel_code_generator --input=path/to/openapi.json \ | |
--input-file-type=openapi --output-model-type=pydantic_v2.BaseModel \ | |
--output=path/to/genearated.py \ | |
--use-annotated --strict-nullable --use-standard-collections \ | |
--use-generic-container-types --use-union-operator \ | |
--use-schema-description --use-field-description \ | |
--reuse-model --use-operation-id-as-name \ | |
--target-python-version=3.11 --validation --openapi-scopes paths schemas parameters \ | |
--enum-field-as-literal all |
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
Fresh unicode-ident v1.0.9 | |
Fresh autocfg v1.1.0 | |
Fresh once_cell v1.17.2 | |
Fresh cfg-if v1.0.0 | |
Dirty bitflags v1.3.2: the config settings changed | |
Compiling bitflags v1.3.2 | |
Fresh rand_core v0.6.4 | |
Dirty static_assertions v1.1.0: the config settings changed | |
Compiling static_assertions v1.1.0 | |
Running `rustc --crate-name bitflags --edition=2018 /home/serjflint/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bitflags-1.3.2/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=203 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto --cfg 'feature="default"' -C metadata=4dc675ba8ac0d3b0 -C extra-filename=-4dc675ba8ac0d3b0 --out-dir /home/serjflint/workspace/ruff/target/x86_64-apple-darwin/release/deps --target x86_64-apple-darwin -C linker=/home/serjflint/.cache/cargo-zigbuild/0.16.11/zigcc-x86_64-apple-darwin.sh -L dependency=/home/serjflint/workspace/ruff/target/x86_64-apple-da |
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
simple | |
constant | |
globals | |
for_loop | |
inplace_operators | |
inplace_division | |
slice_a_b | |
slice_b | |
slice_a | |
slice |
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
import copy | |
import functools | |
import typing as tp | |
Value = tp.Union[int, tp.List] | |
Pair = tp.List[Value] | |
def loader(lines: tp.Iterable[str]): |
NewerOlder