Skip to content

chore: remove redundant CI steps - #91

Open
itsoyou wants to merge 3 commits into
mainfrom
syk/remove-dulpicated-lint
Open

chore: remove redundant CI steps#91
itsoyou wants to merge 3 commits into
mainfrom
syk/remove-dulpicated-lint

Conversation

@itsoyou

@itsoyou itsoyou commented Jul 22, 2026

Copy link
Copy Markdown
Member

SYN-76
SYN-66

@itsoyou
itsoyou requested a review from a team as a code owner July 22, 2026 14:15
Comment thread synapse_token_authenticator/token_authenticator.py
for p in path:
paths: list[list[str]] = [[path]]
elif len(path) == 0 or isinstance(path[0], str):
paths = [cast("list[str]", path)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow, is that supposed to be a string of the types?

@itsoyou itsoyou Jul 29, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like they are using path list, so the path is already string type when it is given as an input.

and it's not the filesystem path, but JWT claim path, which shouldn't be Path

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, is paths = [cast("list[str]", path)] the casting supposed to be in quotes? Shouldn't it be like:paths = [cast(list[str], path)] so the types register? Does cast() take a nested Typing? 🤔 Now I'm curious

Comment thread pyproject.toml
Comment on lines +101 to +114
ignore = [
"FBT001",
"FBT002",
"TRY002",
"TRY003",
"PLW0603",
"N802",
"N815",
"SLF001"
]

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S105", "PLR2004", "N803", "SLF001", "UP035", "PT019", "ARG002", "ARG001"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we are adding these. Are any ignored by default? If you could, please add a little descriptive comment about what it is ignoring?

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.

2 participants