Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync from upstream #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

philip-newzoo
Copy link

Syncing from upstream

wolfovik and others added 8 commits December 2, 2024 13:32
* Fix I001: Import block is un-sorted or un-formatted

* Fix COM812: Trailing comma missing

* Fix UP012: Unnecessary call to `encode` as UTF-8

* Update type annotations

* Fix UP015: Unnecessary open mode parameters

* Fix F401: imported but unused

* Fix SIM201: Use `sys.version_info[0] != 3` instead of `not sys.version_info[0] == 3`

* Fix COM819: Trailing comma prohibited

* Add type annotations

* Fix RUF013: PEP 484 prohibits implicit `Optional`

* Fix W605: Invalid escape sequence

* Fix RET504: Unnecessary assignment before `return` statement

* Fix FLY002: Consider f-string instead of string join

* Fix C417: Unnecessary `map` usage (rewrite using a `list` comprehension)

* Fix PLR1722: Use `sys.exit()` instead of `exit`

* Use pathlib

* Fix YTT203: compare `sys.version_info` to tuple

* Adjust for support of Python 3.8

* Fix UP036: Version block is outdated for minimum Python version

* Fix PYI024: Use `typing.NamedTuple` instead of `collections.namedtuple`

* Fix PT009: Use a regular `assert` instead of unittest-style

* Fix SIM300: Yoda conditions are discouraged

* Fix SIM118: Use `key in dict` instead of `key in dict.keys()`

* Fix FURB126: Replace `else: return x` with `return x`

* Fix FURB138: Consider using list comprehension

* Fix FURB157: Replace `Decimal("100")` with `Decimal(100)`

---------

Co-authored-by: Michał Bukowski <michal.bukowski@buksoft.pl>
Authored-by: maromalo <maromalo9@gmail.com>
* Add minor fixes and bump minimal python version to 3.12

* Update setup.py to version 1.2.0

---------

Authored-by: Wok <woctezuma@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants