Commit Graph

458 Commits

Author SHA1 Message Date
allinoneallinone00
1c8b7a2f6f SQL :> 2024-05-01 23:30:43 +00:00
allinoneallinone00
5513ad2045 Fix: Possible Popen shell injection 2024-05-01 22:58:46 +00:00
allinoneallinone00
aa1cd2cb49 Indentation 2024-05-01 22:46:16 +00:00
allinoneallinone00
107530923b HotLints 2024-05-01 22:36:20 +00:00
allinoneallinone00
d6ed1f30f8 Cont. lines 2024-05-01 22:29:04 +00:00
allinoneallinone00
165f7d222b Use of f-strings 2024-05-01 22:26:50 +00:00
allinoneallinone00
bdffa21e56 logging format 2024-05-01 22:04:57 +00:00
allinoneallinone00
fd6701fd34 Logging format 2024-05-01 22:01:56 +00:00
deepsource-autofix[bot]
034f05af65 refactor: merge collapsible with statements
Nested `with` statements can be merged into a single compound `with` statement.

This issue is raised only when there are no other statements between the nested `with` statements.
Merging collapsible `with` statements can decrease cognitive complexity, improving code readability.
2024-05-02 03:30:04 +05:30
deepsource-autofix[bot]
0c6bd26806 refactor: change methods not using its bound instance to staticmethods
The method doesn't use its bound instance. Decorate this method with `@staticmethod` decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods [here](https://docs.python.org/3/library/functions.html#staticmethod).
2024-05-02 03:27:36 +05:30
allinoneallinone00
d51929eb30 Remove: f-string with no expression 2024-05-01 21:49:11 +00:00
Abhi
89d7a61eb3 Update admintool.py 2024-05-02 03:17:28 +05:30
deepsource-autofix[bot]
1fb047da88 refactor: merge collapsible if statements
Nested `if` statements can be collapsed into a single `if` statement by separating their condition using `and` operator.
Merging collapsible `if` statements increases the code's readability.
2024-05-02 03:17:28 +05:30
Abhi
fbf63db8c2 Update updater.py 2024-05-02 02:49:27 +05:30
Abhi
da474bacc5 Update scripts.py 2024-05-02 02:49:27 +05:30
Abhi
88ce49b6d3 Update updater.py 2024-05-02 02:49:27 +05:30
Abhi
ab87334ae5 Update open.py 2024-05-02 02:49:27 +05:30
deepsource-autofix[bot]
2600b8098f refactor: set check flag to True
`subprocess.run` uses a default of `check=False`, which means that a nonzero exit code will be
ignored by default, instead of raising an exception.

You can ignore this issue if this behaviour is intended.
2024-05-02 02:49:27 +05:30
allinoneallinone00
b8cf14326a logging.warn is depreciated 2024-05-01 20:26:12 +00:00
allinoneallinone00
198de9063e Fix: Re-definition found for builtin function open 2024-05-01 20:13:33 +00:00
allinoneallinone00
c4c7211f6e Remeove: Unused Variable 2024-05-01 19:49:59 +00:00
Abhi
5eb747a164 Update antipm.py 2024-05-02 00:20:02 +05:30
Abhi
0d7f487861 Update lexicapi.py 2024-05-02 00:18:30 +05:30
Abhi
8517a8293c Update lexicapi.py 2024-05-02 00:18:30 +05:30
Abhi
fdaf3d9b25 Update python.py 2024-05-02 00:18:07 +05:30
Abhi
e1b4b5c58f Update example.py 2024-05-02 00:04:59 +05:30
Abhi
4d868e0c9a Update scripts.py 2024-05-02 00:04:59 +05:30
Abhi
5d883b7490 Update scripts.py 2024-05-01 23:51:58 +05:30
Abhi
d474a62558 Re-defined variable from outer scope 2024-05-01 23:51:58 +05:30
Abhi
4600773343 Update aiutils.py 2024-05-01 23:51:58 +05:30
Abhi
74e6d7029a Update aiutils.py 2024-05-01 23:51:58 +05:30
Abhi
0e96b9261c Update lexica.py 2024-05-01 23:51:58 +05:30
Abhi
37cff22b8e Update scripts.py 2024-05-01 23:51:58 +05:30
deepsource-autofix[bot]
292ac91b04 refactor: fix dangerous default argument
Do not use a mutable like `list` or `dictionary` as a default value to an argument. Python’s default arguments are evaluated once when the function is defined. Using a mutable default argument and mutating it will mutate that object for all future calls to the function as well.
2024-05-01 23:03:11 +05:30
deepsource-autofix[bot]
f8be0ba3e5 refactor: refactor unnecessary else / elif when if block has a return statement
The use of `else` or `elif` becomes redundant and can be dropped if the last statement under the leading `if` / `elif` block is a `return` statement.
In the case of an `elif` after `return`, it can be written as a separate `if` block.
For `else` blocks after `return`, the statements can be shifted out of `else`. Please refer to the examples below for reference.

Refactoring the code this way can improve code-readability and make it easier to maintain.
2024-05-01 23:01:08 +05:30
deepsource-autofix[bot]
36e3517aef refactor: remove length check in favour of truthiness of the object
Using the `len` function to check if a sequence is empty is not idiomatic and can be less performant than checking the truthiness of the object.  `len` doesn't know the context in which it is called, so if computing the length means traversing the entire sequence, it must; it doesn't know that the result is just being compared to 0.
2024-05-01 22:59:06 +05:30
deepsource-autofix[bot]
282bc0b98f refactor: refactor if expression
The `if` expression used here can be simplified to increase the code readability. Example:
2024-05-01 22:54:44 +05:30
deepsource-autofix[bot]
23341d79ae refactor: remove unnecessary whitespace
Blank lines should not contain any tabs or spaces.
2024-05-01 22:50:34 +05:30
deepsource-autofix[bot]
16ce0ce826 refactor: add newline at end of file
It is recommended to put a newline at the end of the file.
2024-05-01 22:48:07 +05:30
Abhi
645cb8f9b8 Update docker-image.yml 2024-05-01 22:27:59 +05:30
deepsource-autofix[bot]
9d8f823ad7 refactor: remove commented out code
It is recommended to remove any commented code in your codebase.
2024-05-01 22:24:20 +05:30
deepsource-autofix[bot]
ba975a324b refactor: refactor unnecessary else / elif when if block has a return statement
The use of `else` or `elif` becomes redundant and can be dropped if the last statement under the leading `if` / `elif` block is a `return` statement.
In the case of an `elif` after `return`, it can be written as a separate `if` block.
For `else` blocks after `return`, the statements can be shifted out of `else`. Please refer to the examples below for reference.

Refactoring the code this way can improve code-readability and make it easier to maintain.
2024-05-01 22:19:37 +05:30
deepsource-autofix[bot]
b3c86802c4 refactor: remove unused imports
An object has been imported but is not used anywhere in the file.
It should either be used or the import should be removed.
2024-05-01 22:11:04 +05:30
deepsource-io[bot]
a16c7b8d56 ci: add .deepsource.toml 2024-05-01 16:37:00 +00:00
Abhi
09f3c4a5ef Update progress with f-string 2024-05-01 13:38:50 +05:30
allinoneallinone00
bca10d9b57 Remove depreciated gpt 2024-04-30 15:14:57 +00:00
allinoneallinone00
71335149a5 idx conf 2024-04-30 02:19:35 +00:00
allinoneallinone00
631b803467 Remove Unnecessary humanize loader in afk.py 2024-04-30 00:49:19 +00:00
allinoneallinone00
3715eafe69 Major Shit's Fixes 2024-04-30 00:35:34 +00:00
allinoneallinone00
5d34fbdcad Fix: Trailing and Standardised Multi-line strings 2024-04-29 23:17:18 +00:00