sobolevn
sobolevn
I have faced an issue with Flask's `db.Table`. Here's my setup: ``` # models.py: class Project(db.Model): id = db.Column(db.Integer, primary_key=True) interviewers = db.relationship('User', secondary='project_interviewer') project_interviewer = db.Table( 'project_interviewer', db.Column('user_id', db.Integer,...
Just as suggested here: https://news.ycombinator.com/item?id=12612198
Hi, there are multiple vulnerabilities with some widely-used versions of your package. Can they be addressed and back-ported? ``` npx: installed 115 in 9.19s (+) 1 vulnerability found ┌────────────┬────────────────────────────────────────────────────────────────────┐ │...
People use `timezone.now` (sometimes even `timezone.now()`) as a default value. But, there are `auto_now_add=True` and `auto_now=True` for `DateTimeField`. Sub-checks: - `timezone.now()` is evaluated once, use `timezone.now` - Don't use `datetime.now`,...
Right now `docker-compose` can use multiple `-f` flags to start. And that's how we deploy our stack. Do you consider adding support for multiple files?
Link: https://sobolevn.me/2020/06/how-async-should-have-been # Why is it awesome? - It showcases how one can write sync Python code and still run it asynchronously - It shows how we can hide async...
Link: https://github.com/dry-python/returns Docs: https://returns.readthedocs.io/en/latest/pages/future.html # What is this project? This project is a collection of primitives for typed functional programming. Among others we have `Future`, `FutureResult`, and `ReaderFutureResult` monads. You...
Hi, I represent https://github.com/wemake-services/wemake-python-styleguide project. Awesome tool! We have the same rules: - We disallow inconsistent returns: https://wemake-python-styleguide.readthedocs.io/en/latest/pages/violations/consistency.html#wemake_python_styleguide.violations.consistency.InconsistentReturnViolation - We disallow variables used for return only https://wemake-python-styleguide.readthedocs.io/en/latest/pages/violations/consistency.html#wemake_python_styleguide.violations.consistency.InconsistentReturnVariableViolation - We disallow...
Here's a very quick and very dirty implementation of a plugin that does one thing: reveals the type of `glom(person, 'age')`. Which is `int`. There are also several `mypy` issues...
I love `glom`! It is easy and powerful. The only feature I am really missing is typing support. Here are some examples that really bother me: ```python @dataclass class FullNameSpec(object):...