Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ormar on master via 🐍 v3.9.1
- ❯ virtualenv .venv
- created virtual environment CPython3.9.1.final.0-64 in 158ms
- creator CPython3Posix(dest=/home/s3rius/test/ormar/.venv, clear=False, no_vcs_ignore=False, global=False)
- seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/s3rius/.local/share/virtualenv)
- added seed packages: pip==21.2.4, setuptools==57.4.0, wheel==0.37.0
- activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
- ormar on master via 🐍 v3.9.1
- ❯ source .venv/bin/activate
- ormar on master via 🐍 v3.9.1 (.venv)
- ❯ pip install -r requirements.txt
- Collecting databases<0.5.3,>=0.3.2
- Using cached databases-0.5.2-py3-none-any.whl (20 kB)
- Collecting pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<=1.8.2,>=1.6.1
- Using cached pydantic-1.8.2-cp39-cp39-manylinux2014_x86_64.whl (11.3 MB)
- Collecting sqlalchemy<1.4.26,>=1.3.18
- Using cached SQLAlchemy-1.4.25-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB)
- Collecting typing_extensions<3.10.0.3,>=3.7
- Using cached typing_extensions-3.10.0.2-py3-none-any.whl (26 kB)
- Collecting orjson
- Using cached orjson-3.6.4-cp39-cp39-manylinux_2_24_x86_64.whl (250 kB)
- Collecting cryptography
- Using cached cryptography-35.0.0-cp36-abi3-manylinux_2_24_x86_64.whl (3.5 MB)
- Collecting aiomysql
- Using cached aiomysql-0.0.21-py3-none-any.whl (41 kB)
- Collecting aiosqlite
- Using cached aiosqlite-0.17.0-py3-none-any.whl (15 kB)
- Collecting aiopg
- Using cached aiopg-1.3.2-py3-none-any.whl (34 kB)
- Collecting asyncpg
- Using cached asyncpg-0.24.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (3.4 MB)
- Collecting pymysql
- Using cached PyMySQL-1.0.2-py3-none-any.whl (43 kB)
- Collecting psycopg2-binary
- Using cached psycopg2_binary-2.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB)
- Collecting mysqlclient
- Using cached mysqlclient-2.0.3-cp39-cp39-linux_x86_64.whl
- Collecting pytest
- Using cached pytest-6.2.5-py3-none-any.whl (280 kB)
- Collecting pytest-cov
- Using cached pytest_cov-3.0.0-py3-none-any.whl (20 kB)
- Collecting codecov
- Using cached codecov-2.1.12-py2.py3-none-any.whl (16 kB)
- Collecting pytest-asyncio
- Using cached pytest_asyncio-0.15.1-py3-none-any.whl (12 kB)
- Collecting fastapi
- Using cached fastapi-0.70.0-py3-none-any.whl (51 kB)
- Collecting flake8
- Using cached flake8-3.9.2-py2.py3-none-any.whl (73 kB)
- Collecting flake8-black
- Using cached flake8_black-0.2.3-py3-none-any.whl (8.9 kB)
- Collecting flake8-bugbear
- Using cached flake8_bugbear-21.9.2-py36.py37.py38-none-any.whl (16 kB)
- Collecting flake8-import-order
- Using cached flake8_import_order-0.18.1-py2.py3-none-any.whl (15 kB)
- Collecting flake8-bandit
- Using cached flake8_bandit-2.1.2-py3-none-any.whl
- Collecting flake8-annotations
- Using cached flake8_annotations-2.6.2-py3-none-any.whl (19 kB)
- Collecting flake8-builtins
- Using cached flake8_builtins-1.5.3-py2.py3-none-any.whl (12 kB)
- Collecting flake8-variables-names
- Using cached flake8_variables_names-0.0.4-py3-none-any.whl
- Collecting flake8-cognitive-complexity
- Using cached flake8_cognitive_complexity-0.1.0-py3-none-any.whl
- Collecting flake8-functions
- Using cached flake8_functions-0.0.6-py3-none-any.whl (7.0 kB)
- Collecting flake8-expression-complexity
- Using cached flake8_expression_complexity-0.0.9-py3-none-any.whl
- Collecting mypy
- Using cached mypy-0.910-cp39-cp39-manylinux2010_x86_64.whl (23.2 MB)
- Collecting types-ujson
- Using cached types_ujson-0.1.1-py2.py3-none-any.whl (2.0 kB)
- Collecting types-PyMySQL
- Using cached types_PyMySQL-1.0.2-py3-none-any.whl (12 kB)
- Collecting types-ipaddress
- Using cached types_ipaddress-1.0.0-py3-none-any.whl (3.0 kB)
- Collecting types-enum34
- Using cached types_enum34-1.1.0-py3-none-any.whl (2.8 kB)
- Collecting types-cryptography
- Using cached types_cryptography-3.3.5-py3-none-any.whl (29 kB)
- Collecting types-orjson
- Using cached types_orjson-3.6.0-py3-none-any.whl (2.2 kB)
- Collecting types-aiofiles
- Using cached types_aiofiles-0.1.9-py3-none-any.whl (5.1 kB)
- Collecting types-pkg_resources
- Using cached types_pkg_resources-0.1.3-py2.py3-none-any.whl (4.8 kB)
- Collecting types-requests
- Using cached types_requests-2.25.9-py3-none-any.whl (22 kB)
- Collecting types-toml
- Using cached types_toml-0.10.0-py3-none-any.whl (2.1 kB)
- Collecting mkdocs
- Using cached mkdocs-1.2.2-py3-none-any.whl (6.4 MB)
- Collecting mkdocs-material
- Using cached mkdocs_material-7.3.2-py2.py3-none-any.whl (4.4 MB)
- Collecting mkdocs-material-extensions
- Using cached mkdocs_material_extensions-1.0.3-py3-none-any.whl (8.1 kB)
- Collecting pydoc-markdown
- Using cached pydoc_markdown-4.3.2-py3-none-any.whl (60 kB)
- Collecting yappi
- Using cached yappi-1.3.3-cp39-cp39-linux_x86_64.whl
- Collecting greenlet!=0.4.17
- Using cached greenlet-1.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (153 kB)
- Collecting cffi>=1.12
- Using cached cffi-1.14.6-cp39-cp39-manylinux1_x86_64.whl (405 kB)
- Collecting pymysql
- Using cached PyMySQL-0.9.3-py2.py3-none-any.whl (47 kB)
- Collecting async-timeout<4.0,>=3.0
- Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
- Collecting iniconfig
- Using cached iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
- Collecting packaging
- Using cached packaging-21.0-py3-none-any.whl (40 kB)
- Collecting attrs>=19.2.0
- Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB)
- Collecting pluggy<2.0,>=0.12
- Using cached pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
- Collecting py>=1.8.2
- Using cached py-1.10.0-py2.py3-none-any.whl (97 kB)
- Collecting toml
- Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
- Collecting coverage[toml]>=5.2.1
- Using cached coverage-6.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (254 kB)
- Collecting requests>=2.7.9
- Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
- Collecting starlette==0.16.0
- Using cached starlette-0.16.0-py3-none-any.whl (61 kB)
- Collecting anyio<4,>=3.0.0
- Using cached anyio-3.3.2-py3-none-any.whl (78 kB)
- Collecting pyflakes<2.4.0,>=2.3.0
- Using cached pyflakes-2.3.1-py2.py3-none-any.whl (68 kB)
- Collecting mccabe<0.7.0,>=0.6.0
- Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
- Collecting pycodestyle<2.8.0,>=2.7.0
- Using cached pycodestyle-2.7.0-py2.py3-none-any.whl (41 kB)
- Collecting black
- Using cached black-21.9b0-py3-none-any.whl (148 kB)
- Requirement already satisfied: setuptools in ./.venv/lib/python3.9/site-packages (from flake8-import-order->-r requirements.txt (line 29)) (57.4.0)
- Collecting flake8-polyfill
- Using cached flake8_polyfill-1.0.2-py2.py3-none-any.whl (7.3 kB)
- Collecting bandit
- Using cached bandit-1.7.0-py3-none-any.whl (115 kB)
- Collecting cognitive-complexity
- Using cached cognitive_complexity-1.2.0-py3-none-any.whl
- Collecting mr-proper
- Using cached mr_proper-0.0.6-py3-none-any.whl
- Collecting astpretty
- Using cached astpretty-2.1.0-py2.py3-none-any.whl (5.3 kB)
- Collecting mypy-extensions<0.5.0,>=0.4.3
- Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
- Collecting watchdog>=2.0
- Using cached watchdog-2.1.6-py3-none-manylinux2014_x86_64.whl (76 kB)
- Collecting mergedeep>=1.3.4
- Using cached mergedeep-1.3.4-py3-none-any.whl (6.4 kB)
- Collecting ghp-import>=1.0
- Using cached ghp_import-2.0.2-py3-none-any.whl (11 kB)
- Collecting PyYAML>=3.10
- Using cached PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
- Collecting pyyaml-env-tag>=0.1
- Using cached pyyaml_env_tag-0.1-py3-none-any.whl (3.9 kB)
- Collecting Markdown>=3.2.1
- Using cached Markdown-3.3.4-py3-none-any.whl (97 kB)
- Collecting Jinja2>=2.10.1
- Using cached Jinja2-3.0.2-py3-none-any.whl (133 kB)
- Collecting click>=3.3
- Using cached click-8.0.1-py3-none-any.whl (97 kB)
- Collecting importlib-metadata>=3.10
- Using cached importlib_metadata-4.8.1-py3-none-any.whl (17 kB)
- Collecting pygments>=2.4
- Using cached Pygments-2.10.0-py3-none-any.whl (1.0 MB)
- Collecting pymdown-extensions>=9.0
- Using cached pymdown_extensions-9.0-py3-none-any.whl (215 kB)
- Collecting docspec<2.0.0,>=1.0.0
- Using cached docspec-1.2.0-py3-none-any.whl (10 kB)
- Collecting databind.core<2.0.0,>=1.2.2
- Using cached databind.core-1.2.3-py3-none-any.whl (33 kB)
- Collecting nr.stream<1.0.0,>=0.1.2
- Using cached nr.stream-0.2.3-py3-none-any.whl (6.5 kB)
- Collecting nr.fs<2.0.0,>=1.6.0
- Using cached nr.fs-1.6.3-py2.py3-none-any.whl (13 kB)
- Collecting databind.json<2.0.0,>=1.2.2
- Using cached databind.json-1.2.3-py3-none-any.whl (14 kB)
- Collecting six<2.0.0,>=1.11.0
- Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
- Collecting docspec-python<2.0.0,>=1.0.0
- Using cached docspec_python-1.2.0-py3-none-any.whl (14 kB)
- Collecting nr.pylang.utils<1.0.0,>=0.1.1
- Using cached nr.pylang.utils-0.1.3-py3-none-any.whl (12 kB)
- Collecting idna>=2.8
- Using cached idna-3.2-py3-none-any.whl (59 kB)
- Collecting sniffio>=1.1
- Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)
- Collecting pycparser
- Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
- Collecting tomli
- Using cached tomli-1.2.1-py3-none-any.whl (11 kB)
- Collecting nr.preconditions<1.0.0,>=0.0.4
- Using cached nr.preconditions-0.0.4-py3-none-any.whl (3.5 kB)
- Collecting nr.parsing.date<2.0.0,>=1.0.1
- Using cached nr.parsing.date-1.0.3-py3-none-any.whl (12 kB)
- Collecting nr.optional<1.0.0,>=0.1.1
- Using cached nr.optional-0.2.0-py3-none-any.whl (3.1 kB)
- Collecting Deprecated<2.0.0,>=1.2.12
- Using cached Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
- Collecting wrapt<2,>=1.10
- Using cached wrapt-1.13.1-cp39-cp39-manylinux2010_x86_64.whl (80 kB)
- Collecting python-dateutil>=2.8.1
- Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
- Collecting zipp>=0.5
- Using cached zipp-3.6.0-py3-none-any.whl (5.3 kB)
- Collecting MarkupSafe>=2.0
- Using cached MarkupSafe-2.0.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)
- Collecting dataclasses<1.0.0,>=0.6.0
- Using cached dataclasses-0.6-py3-none-any.whl (14 kB)
- Collecting nr.utils.re<1.0.0,>=0.2.0
- Using cached nr.utils.re-0.3.1-py3-none-any.whl (4.3 kB)
- Collecting pyparsing>=2.0.2
- Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
- Collecting charset-normalizer~=2.0.0
- Using cached charset_normalizer-2.0.6-py3-none-any.whl (37 kB)
- Collecting certifi>=2017.4.17
- Using cached certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
- Collecting urllib3<1.27,>=1.21.1
- Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
- Collecting GitPython>=1.0.1
- Using cached GitPython-3.1.24-py3-none-any.whl (180 kB)
- Collecting stevedore>=1.20.0
- Using cached stevedore-3.4.0-py3-none-any.whl (49 kB)
- Collecting gitdb<5,>=4.0.1
- Using cached gitdb-4.0.7-py3-none-any.whl (63 kB)
- Collecting smmap<5,>=3.0.1
- Using cached smmap-4.0.0-py2.py3-none-any.whl (24 kB)
- Collecting pbr!=2.1.0,>=2.0.0
- Using cached pbr-5.6.0-py2.py3-none-any.whl (111 kB)
- Collecting platformdirs>=2
- Using cached platformdirs-2.4.0-py3-none-any.whl (14 kB)
- Collecting regex>=2020.1.8
- Using cached regex-2021.9.30-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (761 kB)
- Collecting pathspec<1,>=0.9.0
- Using cached pathspec-0.9.0-py2.py3-none-any.whl (31 kB)
- Collecting stdlib-list>=0.5.0
- Using cached stdlib_list-0.8.0-py3-none-any.whl (63 kB)
- Installing collected packages: wrapt, nr.utils.re, nr.pylang.utils, dataclasses, typing-extensions, nr.stream, nr.preconditions, nr.parsing.date, nr.optional, Deprecated, smmap, six, databind.core, zipp, sniffio, PyYAML, python-dateutil, pyparsing, pyflakes, pycodestyle, pbr, mccabe, MarkupSafe, idna, gitdb, databind.json, watchdog, urllib3, tomli, toml, stevedore, stdlib-list, regex, pyyaml-env-tag, pycparser, py, pluggy, platformdirs, pathspec, packaging, mypy-extensions, mergedeep, Markdown, Jinja2, iniconfig, importlib-metadata, greenlet, GitPython, ghp-import, flake8, docspec, coverage, click, charset-normalizer, certifi, attrs, anyio, types-ipaddress, types-enum34, starlette, sqlalchemy, requests, pytest, pymysql, pymdown-extensions, pygments, pydantic, psycopg2-binary, nr.fs, mr-proper, mkdocs-material-extensions, mkdocs, flake8-polyfill, docspec-python, cognitive-complexity, cffi, black, bandit, async-timeout, astpretty, yappi, types-ujson, types-toml, types-requests, types-PyMySQL, types-pkg-resources, types-orjson, types-cryptography, types-aiofiles, pytest-cov, pytest-asyncio, pydoc-markdown, orjson, mysqlclient, mypy, mkdocs-material, flake8-variables-names, flake8-import-order, flake8-functions, flake8-expression-complexity, flake8-cognitive-complexity, flake8-builtins, flake8-bugbear, flake8-black, flake8-bandit, flake8-annotations, fastapi, databases, cryptography, codecov, asyncpg, aiosqlite, aiopg, aiomysql
- Successfully installed Deprecated-1.2.13 GitPython-3.1.24 Jinja2-3.0.2 Markdown-3.3.4 MarkupSafe-2.0.1 PyYAML-5.4.1 aiomysql-0.0.21 aiopg-1.3.2 aiosqlite-0.17.0 anyio-3.3.2 astpretty-2.1.0 async-timeout-3.0.1 asyncpg-0.24.0 attrs-21.2.0 bandit-1.7.0 black-21.9b0 certifi-2021.5.30 cffi-1.14.6 charset-normalizer-2.0.6 click-8.0.1 codecov-2.1.12 cognitive-complexity-1.2.0 coverage-6.0.1 cryptography-35.0.0 databases-0.5.2 databind.core-1.2.3 databind.json-1.2.3 dataclasses-0.6 docspec-1.2.0 docspec-python-1.2.0 fastapi-0.70.0 flake8-3.9.2 flake8-annotations-2.6.2 flake8-bandit-2.1.2 flake8-black-0.2.3 flake8-bugbear-21.9.2 flake8-builtins-1.5.3 flake8-cognitive-complexity-0.1.0 flake8-expression-complexity-0.0.9 flake8-functions-0.0.6 flake8-import-order-0.18.1 flake8-polyfill-1.0.2 flake8-variables-names-0.0.4 ghp-import-2.0.2 gitdb-4.0.7 greenlet-1.1.2 idna-3.2 importlib-metadata-4.8.1 iniconfig-1.1.1 mccabe-0.6.1 mergedeep-1.3.4 mkdocs-1.2.2 mkdocs-material-7.3.2 mkdocs-material-extensions-1.0.3 mr-proper-0.0.6 mypy-0.910 mypy-extensions-0.4.3 mysqlclient-2.0.3 nr.fs-1.6.3 nr.optional-0.2.0 nr.parsing.date-1.0.3 nr.preconditions-0.0.4 nr.pylang.utils-0.1.3 nr.stream-0.2.3 nr.utils.re-0.3.1 orjson-3.6.4 packaging-21.0 pathspec-0.9.0 pbr-5.6.0 platformdirs-2.4.0 pluggy-1.0.0 psycopg2-binary-2.9.1 py-1.10.0 pycodestyle-2.7.0 pycparser-2.20 pydantic-1.8.2 pydoc-markdown-4.3.2 pyflakes-2.3.1 pygments-2.10.0 pymdown-extensions-9.0 pymysql-0.9.3 pyparsing-2.4.7 pytest-6.2.5 pytest-asyncio-0.15.1 pytest-cov-3.0.0 python-dateutil-2.8.2 pyyaml-env-tag-0.1 regex-2021.9.30 requests-2.26.0 six-1.16.0 smmap-4.0.0 sniffio-1.2.0 sqlalchemy-1.4.25 starlette-0.16.0 stdlib-list-0.8.0 stevedore-3.4.0 toml-0.10.2 tomli-1.2.1 types-PyMySQL-1.0.2 types-aiofiles-0.1.9 types-cryptography-3.3.5 types-enum34-1.1.0 types-ipaddress-1.0.0 types-orjson-3.6.0 types-pkg-resources-0.1.3 types-requests-2.25.9 types-toml-0.10.0 types-ujson-0.1.1 typing-extensions-3.10.0.2 urllib3-1.26.7 watchdog-2.1.6 wrapt-1.13.1 yappi-1.3.3 zipp-3.6.0
- ormar on master via 🐍 v3.9.1 (.venv) took 38s
- ❯ black ormar tests
- reformatted ormar/exceptions.py
- reformatted ormar/fields/through_field.py
- reformatted ormar/decorators/signals.py
- reformatted ormar/models/mixins/prefetch_mixin.py
- reformatted ormar/models/mixins/pydantic_mixin.py
- reformatted ormar/models/mixins/excludable_mixin.py
- reformatted ormar/fields/many_to_many.py
- reformatted ormar/models/mixins/save_mixin.py
- reformatted ormar/models/model_row.py
- reformatted ormar/queryset/actions/filter_action.py
- reformatted ormar/fields/foreign_key.py
- reformatted ormar/queryset/clause.py
- reformatted ormar/fields/model_fields.py
- reformatted ormar/models/metaclass.py
- reformatted ormar/queryset/query.py
- reformatted ormar/relations/alias_manager.py
- reformatted ormar/queryset/join.py
- reformatted ormar/relations/utils.py
- reformatted ormar/relations/relation_manager.py
- reformatted ormar/queryset/utils.py
- reformatted ormar/queryset/prefetch_query.py
- reformatted ormar/models/newbasemodel.py
- reformatted ormar/relations/querysetproxy.py
- reformatted tests/test_encryption/test_encrypted_columns.py
- reformatted tests/test_exclude_include_dict/test_excludable_items.py
- reformatted ormar/queryset/queryset.py
- reformatted tests/test_model_definition/pks_and_fks/test_saving_string_pks.py
- reformatted tests/test_exclude_include_dict/test_complex_relation_tree_performance.py
- reformatted tests/test_model_definition/test_saving_nullable_fields.py
- reformatted tests/test_model_definition/test_fields_access.py
- reformatted tests/test_queries/test_nested_reverse_relations.py
- reformatted tests/test_inheritance_and_pydantic_generation/test_inheritance_concrete.py
- reformatted tests/test_relations/test_prefetch_related_multiple_models_relation.py
- reformatted tests/test_model_definition/test_models.py
- reformatted tests/test_relations/test_select_related_with_limit.py
- All done! ✨ 🍰 ✨
- 35 files reformatted, 159 files left unchanged.
- ormar on master [!] via 🐍 v3.9.1 (.venv) took 18s
- ❯ flake8 ormar
- ormar/__init__.py:67:1: I101 Imported names are in the wrong order. Should be ExcludableItems, Extra, Model
- ormar/queryset/field_accessor.py:38:5: CFQ004 Function "__getattr__" has 4 returns that exceeds max allowed 3
- ormar/queryset/queryset.py:582:5: CFQ004 Function "values" has 4 returns that exceeds max allowed 3
- ormar/models/newbasemodel.py:28:1: I100 Import statements are in the wrong order. 'import databases' should be before 'from ormar.models.utils import Extra'
- ormar/models/newbasemodel.py:28:1: I202 Additional newline in a group of imports. 'import databases' is identified as Third Party and 'from ormar.models.utils import Extra' is identified as Third Party.
- ormar/models/newbasemodel.py:223:5: CCR001 Cognitive complexity is too high (8 > 7)
- ormar/models/helpers/models.py:32:1: CCR001 Cognitive complexity is too high (8 > 7)
- ormar/fields/sqlalchemy_encrypted.py:170:5: CFQ004 Function "process_result_value" has 4 returns that exceeds max allowed 3
- ormar/fields/base.py:151:5: CFQ004 Function "default_value" has 4 returns that exceeds max allowed 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement