🚀 New issue to wemake-services/wemake-python-styleguide by @sobolevn
📝 `WPS235`: ignore imports from `typing` (#3824)
I can't limit the number of types I import from
We need to just ignore this module. And
#bug #help_wanted #levelstarter #good_first_issue #wemake_python_styleguide #wps
sent via relator
📝 `WPS235`: ignore imports from `typing` (#3824)
I can't limit the number of types I import from
typing, I can't refactor types to use typing. prefix and import import typingWe need to just ignore this module. And
typing_extensions as well.#bug #help_wanted #levelstarter #good_first_issue #wemake_python_styleguide #wps
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @Izcarmt95
📝 OpenAPI: duplicated tags when both Router(tags=...) and @modify(tags=...) set the same tag (#1656)
When an operation has a tag in
Expected:
This looks related to the change for #1299, which now propagates router metadata to included routes.
• django-modern-rest 0.15.0
• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
📝 OpenAPI: duplicated tags when both Router(tags=...) and @modify(tags=...) set the same tag (#1656)
When an operation has a tag in
@modify(tags=...) and its Router has the same tag in Router(tags=...), the generated OpenAPI operation lists the tag twice. UIs like Scalar then show every operation twice, once per tag entry.from dmr import Controller, modify
from dmr.openapi import build_schema
from dmr.plugins.pydantic import PydanticSerializer
from dmr.routing import Router, path
class UserController(Controller[PydanticSerializer]):
@modify(tags=['Users'])
def get(self) -> str:
return 'ok'
users = Router('/users', [path('/all', UserController.as_view(), name='users')], tags=['Users'])
api = Router('api')
api.include(users, namespace='users')
schema = build_schema(api)
print(schema.paths['/api/users/all'].get.tags) # ['Users', 'Users']
Expected:
['Users']. The router tags and the endpoint tags should be merged without duplicates.This looks related to the change for #1299, which now propagates router metadata to included routes.
• django-modern-rest 0.15.0
• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @Izcarmt95
📝 Router.include() raises KeyError for a route with an empty pattern ('') (#1657)
Workaround: use an empty router prefix and write the full segment in each route (
• django-modern-rest 0.15.0 (it worked in 0.13.0, before
• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
📝 Router.include() raises KeyError for a route with an empty pattern ('') (#1657)
Router.include() raises KeyError when the included router has a route with an empty pattern (path('', ...)), which is the usual way to mount a list endpoint at the router's prefix.from dmr import Controller
from dmr.plugins.pydantic import PydanticSerializer
from dmr.routing import Router, path
class UserListController(Controller[PydanticSerializer]):
def get(self) -> str:
return 'ok'
users = Router('/users', [path('', UserListController.as_view(), name='users')])
api = Router('api')
api.include(users, namespace='users') # KeyError: '/users'
File ".../dmr/routing.py", line 173, in include
router.metadata_for(original_path),
File ".../dmr/routing.py", line 217, in metadata_for
return self._path_metadata[pattern]
KeyError: '/users'
Router.__init__ stores the metadata of the empty route under '/users/' (normalized with original_prefix=''), but include() looks it up as '/users' (normalized with original_prefix=router.prefix). Routes with a non-empty pattern (path('/<id>', ...)) are fine.Workaround: use an empty router prefix and write the full segment in each route (
Router('', [path('/users', ...)])).• django-modern-rest 0.15.0 (it worked in 0.13.0, before
include() looked up the metadata)• Django 5.2, Python 3.13
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
AI disclaimer: an AI assistant was used only to help write this issue.
#bug #good_first_issue #help_wanted #opensource_september #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Improve `dmr` skill with `concrete_views` example (#1670)
We should state that using
Add this to the
#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
📝 Improve `dmr` skill with `concrete_views` example (#1670)
We should state that using
concrete_views is better than implementing your own views that do not change anything.Add this to the
dmr skill.#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Improve `dmr` skill with CSRF example (#1671)
Currently this example shows how to protect a view with CSRF:
django-modern-rest/dmr/.agents/skills/dmr/references/security.md
Lines 117 to 176 in 1cb33fb
However, there are better ways for CSRF protection, see
This example must show something else :)
#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
📝 Improve `dmr` skill with CSRF example (#1671)
Currently this example shows how to protect a view with CSRF:
django-modern-rest/dmr/.agents/skills/dmr/references/security.md
Lines 117 to 176 in 1cb33fb
However, there are better ways for CSRF protection, see
csrf_exempt=False.This example must show something else :)
#feature #good_first_issue #help_wanted #django_modern_rest
sent via relator
🚀 New issue to wemake-services/wemake-python-styleguide by @sobolevn
📝 Move skills into the `wemake_python_styleguide` folder (#3842)
https://library-skills.io requires skills to be in the source folder, see https://github.com/wemake-services/django-modern-rest/tree/master/dmr/.agents/skills
Let's move them there :)
#help_wanted #levelstarter #good_first_issue #wemake_python_styleguide #wps
sent via relator
📝 Move skills into the `wemake_python_styleguide` folder (#3842)
https://library-skills.io requires skills to be in the source folder, see https://github.com/wemake-services/django-modern-rest/tree/master/dmr/.agents/skills
Let's move them there :)
#help_wanted #levelstarter #good_first_issue #wemake_python_styleguide #wps
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Set `security=None` for concrete login views (#1719)
We already set
#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
📝 Set `security=None` for concrete login views (#1719)
We already set
auth=None for them, but security= must also be disabled for the consistency.#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
❤1
🚀 New issue to wemake-services/django-modern-rest by @joefefs
📝 None endpoints still document a JSON null response body. (#1733)
What's wrong?
For endpoints that returns nothing, the server correctly sends an empty body, but the schema describes that response as
Anything that trusts that schema (like an SDK generator) might try to read this null body as JSON and crash.
How it should be?
The response should NOT have a content key, only a
Used versions
• django-modern-rest 0.16.0
• Django 5.2.17
• Python 3.13.12
• pydantic 2.13.5
• msgspec 0.22.0
OS information
macOS 26.3.2
#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
📝 None endpoints still document a JSON null response body. (#1733)
What's wrong?
For endpoints that returns nothing, the server correctly sends an empty body, but the schema describes that response as
application/json with a null schema.Anything that trusts that schema (like an SDK generator) might try to read this null body as JSON and crash.
How it should be?
The response should NOT have a content key, only a
{ "description": "No Content" } should suffice so that clients relying on the spec won't try to read a body that does not exist.Used versions
• django-modern-rest 0.16.0
• Django 5.2.17
• Python 3.13.12
• pydantic 2.13.5
• msgspec 0.22.0
OS information
macOS 26.3.2
#bug #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
🚀 New issue to fast-collections/fast-collections by @Khabib73
📝 Fix README fast-python button link to fast-collections (#185)
In the README, the fast-python button currently points to the wrong link. It should point to https://github.com/fast-collections instead.
#help_wanted #fast_collections
sent via relator
📝 Fix README fast-python button link to fast-collections (#185)
In the README, the fast-python button currently points to the wrong link. It should point to https://github.com/fast-collections instead.
#help_wanted #fast_collections
sent via relator
😁7
🚀 New issue to fast-collections/fast-collections by @Khabib73
📝 Add “No AI slop” badge (#193)
We should add a README badge similar to the one in django-modern-rest:
Reference badge in README: https://github.com/wemake-services/django-modern-rest/blob/master/README.md?plain=1#L20
Reference policy: https://github.com/wemake-services/django-modern-rest/blob/master/.github/AI_POLICY.md
#help_wanted #fast_collections
sent via relator
📝 Add “No AI slop” badge (#193)
We should add a README badge similar to the one in django-modern-rest:
Reference badge in README: https://github.com/wemake-services/django-modern-rest/blob/master/README.md?plain=1#L20
Reference policy: https://github.com/wemake-services/django-modern-rest/blob/master/.github/AI_POLICY.md
#help_wanted #fast_collections
sent via relator
😁6🥰4
Конкурс статей от GitVerse и Habr: https://habr.com/ru/specials/1080998/
Темы сезона:
1. AI‑Disrupt PDLC — перестройка жизненного цикла разработки
2. Open source для ИИ и ИИ для open source
3. Безопасная разработка в ИИ‑эпоху
Правила: https://drive.google.com/file/d/1qoQI9rbYbU6GgxUZZgnIEpxLbPwpEWp_/view?usp=sharing
- 1-е место — 120 000 рублей;
- 2-е место — 60 000 рублей;
- 3-е место — 40 000 рублей.
Успехов!
Темы сезона:
1. AI‑Disrupt PDLC — перестройка жизненного цикла разработки
2. Open source для ИИ и ИИ для open source
3. Безопасная разработка в ИИ‑эпоху
Правила: https://drive.google.com/file/d/1qoQI9rbYbU6GgxUZZgnIEpxLbPwpEWp_/view?usp=sharing
- 1-е место — 120 000 рублей;
- 2-е место — 60 000 рублей;
- 3-е место — 40 000 рублей.
Успехов!
Хабр
Код будущего: Хабр и Сбер запускают новый сезон статей о роли ИИ в создании ПО
Искусственный интеллект в IT из экспериментального инструмента превратился в рабочий: он меняет роли в командах и заставляет пересматривать привычные подходы. Компании всё меньше обсуждают, полезен ли ИИ при разработке ПО. Вместо этого они думают, как лучше…
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Validate `x_extension` definition (#1840)
Our docs say that all top-level entries in
We only validate this with
So, I propose to validate it here:
django-modern-rest/dmr/validation/endpoint_metadata.py
Lines 833 to 842 in c482aff
#feature #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
📝 Validate `x_extension` definition (#1840)
Our docs say that all top-level entries in
x_extensions must start with 'x-'.We only validate this with
openapi-validator now, but it can be disabled.So, I propose to validate it here:
django-modern-rest/dmr/validation/endpoint_metadata.py
Lines 833 to 842 in c482aff
#feature #good_first_issue #help_wanted #openapi #django_modern_rest
sent via relator
🚀 New issue to wemake-services/wemake-python-styleguide by @sobolevn
📝 Forbid lazy imports (#3639)
If you want imports to be lazy - put them in your functions.
No
We need to wait for 3.15 to be released for this feature to be implemented.
#help_wanted #levelstarter #rule_request #good_first_issue #wemake_python_styleguide #wps
sent via relator
📝 Forbid lazy imports (#3639)
If you want imports to be lazy - put them in your functions.
No
lazy import in WPS.We need to wait for 3.15 to be released for this feature to be implemented.
#help_wanted #levelstarter #rule_request #good_first_issue #wemake_python_styleguide #wps
sent via relator
😁3👍2🤔2
🚀 New issue to wemake-services/django-modern-rest by @sobolevn
📝 Test `build-no-msgspec` fails in CI (#1849)
See https://github.com/wemake-services/django-modern-rest/actions/runs/44302730397/job/134796338201
For some reason it declares
as partially covered.
We need to figure out - why.
#bug #good_first_issue #help_wanted #django_modern_rest
sent via relator
📝 Test `build-no-msgspec` fails in CI (#1849)
See https://github.com/wemake-services/django-modern-rest/actions/runs/44302730397/job/134796338201
For some reason it declares
POST /api/controllers/constrained-user/ 1 0 1 0.00%as partially covered.
We need to figure out - why.
#bug #good_first_issue #help_wanted #django_modern_rest
sent via relator
🚀 New issue to wemake-services/django-modern-rest by @Khabib73
📝 WPS 1.9 (#1853)
After the release of WPS 1.9, we need to update all the documentation on attributes and values. See https://wemake-python-styleguide.readthedocs.io/en/latest/pages/usage/violations/consistency.html#wemake_python_styleguide.violations.consistency.WrongAttributeDocstringViolation
Also, please add labels such as
#good_first_issue #help_wanted #django_modern_rest
sent via relator
📝 WPS 1.9 (#1853)
After the release of WPS 1.9, we need to update all the documentation on attributes and values. See https://wemake-python-styleguide.readthedocs.io/en/latest/pages/usage/violations/consistency.html#wemake_python_styleguide.violations.consistency.WrongAttributeDocstringViolation
Also, please add labels such as
Help wanted, etc.#good_first_issue #help_wanted #django_modern_rest
sent via relator
👍3😭1
🚀 New issue to ag2ai/faststream by @moskrc
📝 Feature: allow BlockingConnectionPool in RedisBroker (#3371)
redis-py's
Proposal: a parameter for the pool class, e.g.
FastStream 0.7.8, redis 8.1.0, Redis 8.4.
#enhancement #good_first_issue #faststream #ag2ai
sent via relator
📝 Feature: allow BlockingConnectionPool in RedisBroker (#3371)
RedisBroker(max_connections=N) always uses a plain ConnectionPool, which raises MaxConnectionsError when more than N commands run at once instead of waiting for a free connection.import asyncio
from faststream.redis import RedisBroker
broker = RedisBroker("redis://localhost:6379", max_connections=2)
async def main() -> None:
await broker.connect()
await asyncio.gather(*(broker.publish(i, stream="test") for i in range(10)))
asyncio.run(main())
# redis.exceptions.MaxConnectionsError: Too many connections
redis-py's
BlockingConnectionPool waits for a free connection and handles the same load, but FastStream has no way to use it (connection_class is the connection class, not the pool class).Proposal: a parameter for the pool class, e.g.
RedisBroker(url, max_connections=2, connection_pool_class=BlockingConnectionPool)
FastStream 0.7.8, redis 8.1.0, Redis 8.4.
#enhancement #good_first_issue #faststream #ag2ai
sent via relator