Anders Kaseorg

Results 389 comments of Anders Kaseorg

Just to dream a little bit here, I think there could be a future where we integrate with mypy or another type checker to enable type-aware lints. In that world,...

`foo` is detected as first-party anyway as long as it exists in one of the paths in [`src`](https://github.com/charliermarsh/ruff#src) (defaults to `["."]`, for the typical case where `foo` is in the...

My goal here isn’t to agree or disagree, just to figure out whether the existing mechanisms are sufficient and where they fall short. Looking at your monorepo, it seems to...

Ah, my apologies for misreading—I hadn’t noticed that update (#1266). It seems to me that if we’re going to trace up the `__init__.py` chain to find `project-root/foo`, then we might...

An annotation like `id: int` or `datetime: Optional[datetime.datetime]` doesn’t bind anything at runtime, so it shouldn’t be considered as shadowing the outer binding. An annotated _assignment_ like `id: int =...

> Perfect! Also is there a Discord server or something similar for people contributing to chat on? @charliermarsh If you’re interested, Zulip will happily sponsor free Zulip Cloud hosting for...

It seems to me that `frontends` vs. `lib` is hierarchy for the sake of hierarchy. If a newcomer is looking for the code of `flake8_to_ruff`, they might not know whether...

Some classes such as [`xml.etree.elementtree.Element`](https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element) support `items` but not `values`.

> `pylint` for example cannot work with inlined-disables. Sure it can, you just need to move the comment to the right line. ```python from dvc.api.data import ( # pylint: disable=redefined-builtin...