Skip to main content

A Pylint plugin for improving code analysis when editing code using Flask-SQLAlchemy

Project description

pylint_flask_sqlalchemy

Beware: this is still a WIP.

About

pylint_flask_sqlalchemy is Pylint plugin for improving code analysis when editing code using Flask-SQLAlchemy.

Usage

Using a simple flask app

# app.py
from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
db = SQLAlchemy(app)


class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(80), unique=True, nullable=False)
    email = db.Column(db.String(120), unique=True, nullable=False)

    def __repr__(self):
        return '<User %r>' % self.username

Before pylint_flask_sqlalchemy :

pylint app.py

After :

pylint --load-plugins pylint_flask_sqlalchemy app.py

Installation

pip install pylint_flask_sqlalchemy

Roadmap

  • write tests
  • silence too-few-public-methods for models

Changelog

Current version

New

  • First draft of the plugin.

Fixes

  • Packaging.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylint_flask_sqlalchemy-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylint_flask_sqlalchemy-0.0.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file pylint_flask_sqlalchemy-0.0.2.tar.gz.

File metadata

  • Download URL: pylint_flask_sqlalchemy-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for pylint_flask_sqlalchemy-0.0.2.tar.gz
Algorithm Hash digest
SHA256 31a22115199c887c09f36dc144065176df5d758b64d49e45b232f296447a7e4e
MD5 f9dc46ed336cf94bd462eaade5511418
BLAKE2b-256 50eba9743a8e17989dd1419d42617448fa835b12afa04b623133b10bf5db99af

See more details on using hashes here.

File details

Details for the file pylint_flask_sqlalchemy-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pylint_flask_sqlalchemy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for pylint_flask_sqlalchemy-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8315e6be9b418efaf0c5f139e2ac05a5e9c8a546ec41eec3699afcc8ab559a4c
MD5 9961a20e86943a33c9b48b01fd242dc7
BLAKE2b-256 330cb83beede13c878ad4731c368e40ef93c6d8086d9e7ab6a3f7d25d68c7411

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page