feat: Activate ruff rules UP(pyupgrade) (#3871)

* Activate ruff rules UP(pyupgrade)

* Set ruff target version

* Fix threading.Lock | None error
Due to https://github.com/python/cpython/issues/114315

* Fix Text in custom component supported typed

* Fix mypy issues

---------

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Christophe Bornet 2024-09-25 19:38:50 +02:00 • committed by GitHub
commit f8a2a7d3b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
186 changed files with 911 additions and 983 deletions

View file

@ -141,11 +141,12 @@ mypy_path = "langflow"
ignore_missing_imports = true
[tool.ruff]
target-version = "py310"
exclude = ["langflow/alembic"]
line-length = 120
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
select = ["E4", "E7", "E9", "F", "I", "UP"]
[build-system]
requires = ["poetry-core"]