Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
idocyabra committed Apr 27, 2024
1 parent f02fe95 commit 2d36cf2
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions example_app/strings_demo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Strings and strings related fields demo model."""

import re

from example_app.models import db
Expand Down
1 change: 1 addition & 0 deletions example_app/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Demo views for example application."""

from faker import Faker
from flask import render_template, request
from mongoengine.context_managers import switch_db
Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module responsible for connection setup."""

import warnings
from typing import List

Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/db_fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Responsible for mongoengine fields extension, if WTFForms integration used."""

__all__ = [
"WtfFieldMixin",
"BinaryField",
Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Collection of project wide decorators."""

import functools
import logging
import warnings
Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/documents.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Extended version of :mod:`mongoengine.document`."""

import logging
from typing import Dict, List, Optional, Type, Union

Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Flask application JSON extension functions."""

from functools import lru_cache

from bson import DBRef, ObjectId, json_util
Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/panels.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Debug panel views and logic and related mongoDb event listeners."""

__all__ = ["mongo_command_logger", "MongoDebugPanel"]
import logging
import sys
Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/wtf/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""WTFForms integration module init file."""

from flask_mongoengine.wtf.orm import model_fields, model_form # noqa
1 change: 1 addition & 0 deletions flask_mongoengine/wtf/fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Useful form fields for use with the mongoengine.
"""

__all__ = [
"ModelSelectField",
"QuerySetSelectField",
Expand Down
1 change: 1 addition & 0 deletions flask_mongoengine/wtf/orm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tools for generating forms based on mongoengine Document schemas.
"""

import decimal
from collections import OrderedDict
from typing import List, Optional, Type
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Nox is Tox tool replacement.
"""

import shutil
from pathlib import Path

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ wtf = ["WTForms[email]>=3.0.0",
]
toolbar = ["Flask-DebugToolbar>=0.11.0"]
dev = [
"black==22.6.0",
"black==24.4.2",
"pre-commit",
"pytest",
"pytest-cov",
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup file for backward compatibility with setuptools, not supported PEP 660."""

from setuptools import setup

setup()
1 change: 1 addition & 0 deletions tests/test_base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for base MongoEngine class."""

import pytest

from flask_mongoengine import MongoEngine
Expand Down
1 change: 1 addition & 0 deletions tests/test_db_fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for db_fields overwrite and WTForms integration."""

import re
from enum import Enum
from unittest.mock import Mock
Expand Down
1 change: 1 addition & 0 deletions tests/test_db_fields_import_protection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Testing independency from WTForms."""

import pytest

try:
Expand Down
1 change: 1 addition & 0 deletions tests/test_debug_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Independent of global configuration by design.
"""

import contextlib

import flask
Expand Down
1 change: 1 addition & 0 deletions tests/test_decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for project wide decorators."""

from flask_mongoengine.decorators import orm_deprecated


Expand Down
1 change: 1 addition & 0 deletions tests/test_forms_v2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Integration tests for new WTForms generation in Flask-Mongoengine 2.0."""

import json
from enum import Enum

Expand Down
1 change: 1 addition & 0 deletions tests/test_json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Extension of app JSON capabilities."""

import flask
import pytest

Expand Down

0 comments on commit 2d36cf2

Please sign in to comment.