Created
July 8, 2025 18:18
-
-
Save kylefelipe/cf102c991e9ae859bd76999c0933d1da to your computer and use it in GitHub Desktop.
Ruff informa que tem de remover o alias do import que ele mesmo colocou
This file contains hidden or 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
[project] | |
name = "curio-backend" | |
version = "0.1.0" | |
authors = [ | |
{ name = "Kyle Felipe",email = "[email protected]" }, | |
] | |
description = "Curio Backend is a FastAPI application designed to provide a robust backend solution for the Curio platform, leveraging modern Python libraries and best practices" | |
readme = "README.md" | |
requires-python = ">=3.12,<4.0" | |
dependencies = [ | |
"uvicorn[standard] (>=0.34.3,<0.35.0)", | |
"motor (>=3.7.1,<4.0.0)", | |
"sqlalchemy (>=2.0.41,<3.0.0)", | |
"asyncpg (>=0.30.0,<0.31.0)", | |
"geoalchemy2 (>=0.17.1,<0.18.0)", | |
"pydantic (>=2.11.5,<3.0.0)", | |
"aiofiles (>=24.1.0,<25.0.0)", | |
"python-multipart (>=0.0.20,<0.0.21)", | |
"python-dotenv (>=1.1.0,<2.0.0)", | |
"fastapi[standard] (>=0.115.12,<0.116.0)", | |
"pydantic-settings (>=2.9.1,<3.0.0)", | |
"pyjwt (>=2.10.1,<3.0.0)", | |
"passlib (>=1.7.4,<2.0.0)", | |
"alembic (>=1.16.2,<2.0.0)", | |
"psycopg2[binary] (>=2.9.10,<3.0.0)" | |
] | |
[tool.poetry] | |
packages = [{include = "curio_backend", from = "src"}] | |
[tool.poetry.dependencies] | |
python-dotenv = "*" | |
[tool.poetry.group.dev.dependencies] | |
taskipy = "^1.14.1" | |
pytest = "^8.4.0" | |
pytest-cov = "^6.1.1" | |
ruff = "^0.11.12" | |
isort = "^6.0.1" | |
ignore = "^0.1.4" | |
httpx = "^0.28.1" | |
[build-system] | |
requires = ["poetry-core>=2.0.0,<3.0.0"] | |
build-backend = "poetry.core.masonry.api" | |
[tool.ruff] | |
line-length = 88 | |
extend-exclude = ["migrations"] | |
[tool.ruff.lint] | |
preview = true | |
select = ['I', 'F', 'E', 'W', 'PL', 'PT'] | |
[tool.ruff.format] | |
preview = true | |
quote-style = 'single' | |
[tool.pytest.ini_options] | |
pythonpath = "." | |
addopts = "-p no:warnings" | |
[tool.taskipy.tasks] | |
lint = "ruff check" | |
pre_format = "ruff check --fix" | |
format = "ruff format" | |
run = "fastapi dev app/main.py" | |
pre_test = "task lint" | |
test = "pytest -s -x --cov=curio_backend -vv" | |
post_test = "coverage html" |
This file contains hidden or 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
task format app/ | |
app/db/__init__.py:2:29: PLC0414 Import alias does not rename original package | |
| | |
1 | # from app.db.base import Base | |
2 | from app.db.postgres import engine as engine | |
| ^^^^^^^^^^^^^^^^ PLC0414 | |
3 | from app.db.postgres import get_session as get_session | |
| | |
= help: Remove import alias | |
app/db/__init__.py:3:29: PLC0414 Import alias does not rename original package | |
| | |
1 | # from app.db.base import Base | |
2 | from app.db.postgres import engine as engine | |
3 | from app.db.postgres import get_session as get_session | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ PLC0414 | |
| | |
= help: Remove import alias | |
app/models/__init__.py:1:35: PLC0414 Import alias does not rename original package | |
| | |
1 | from app.models.base_model import Base as Base | |
| ^^^^^^^^^^^^ PLC0414 | |
2 | from app.models.user_model import User as User | |
| | |
= help: Remove import alias | |
app/models/__init__.py:2:35: PLC0414 Import alias does not rename original package | |
| | |
1 | from app.models.base_model import Base as Base | |
2 | from app.models.user_model import User as User | |
| ^^^^^^^^^^^^ PLC0414 | |
| | |
= help: Remove import alias | |
app/schemas/__init__.py:1:41: PLC0414 Import alias does not rename original package | |
| | |
1 | from app.schemas.messages_schema import Message as Message | |
| ^^^^^^^^^^^^^^^^^^ PLC0414 | |
2 | from app.schemas.user_schema import TokenData as TokenData | |
3 | from app.schemas.user_schema import UserCreate as UserCreate | |
| | |
= help: Remove import alias | |
app/schemas/__init__.py:2:37: PLC0414 Import alias does not rename original package | |
| | |
1 | from app.schemas.messages_schema import Message as Message | |
2 | from app.schemas.user_schema import TokenData as TokenData | |
| ^^^^^^^^^^^^^^^^^^^^^^ PLC0414 | |
3 | from app.schemas.user_schema import UserCreate as UserCreate | |
4 | from app.schemas.user_schema import UserOut as UserOut | |
| | |
= help: Remove import alias | |
app/schemas/__init__.py:3:37: PLC0414 Import alias does not rename original package | |
| | |
1 | from app.schemas.messages_schema import Message as Message | |
2 | from app.schemas.user_schema import TokenData as TokenData | |
3 | from app.schemas.user_schema import UserCreate as UserCreate | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ PLC0414 | |
4 | from app.schemas.user_schema import UserOut as UserOut | |
| | |
= help: Remove import alias | |
app/schemas/__init__.py:4:37: PLC0414 Import alias does not rename original package | |
| | |
2 | from app.schemas.user_schema import TokenData as TokenData | |
3 | from app.schemas.user_schema import UserCreate as UserCreate | |
4 | from app.schemas.user_schema import UserOut as UserOut | |
| ^^^^^^^^^^^^^^^^^^ PLC0414 | |
| | |
= help: Remove import alias | |
Found 14 errors (6 fixed, 8 remaining). | |
No fixes available (8 hidden fixes can be enabled with the `--unsafe-fixes` option). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment