Skip to main content

Modular SQL Linting for Humans

Project description

# SqlFluff ## The SQL Linter for humans

[![image](https://img.shields.io/pypi/v/sqlfluff.svg)](https://pypi.org/project/sqlfluff/) [![image](https://img.shields.io/pypi/l/sqlfluff.svg)](https://pypi.org/project/sqlfluff/) [![image](https://img.shields.io/pypi/pyversions/sqlfluff.svg)](https://pypi.org/project/sqlfluff/) [![codecov](https://codecov.io/gh/alanmcruickshank/sqlfluff/branch/master/graph/badge.svg)](https://codecov.io/gh/alanmcruickshank/sqlfluff) [![CircleCI](https://circleci.com/gh/alanmcruickshank/sqlfluff/tree/master.svg?style=svg)](https://circleci.com/gh/alanmcruickshank/sqlfluff/tree/master)

Bored of not having a good SQL linter that works with whichever dialiect you’re working with? Fluff is an extensible and modular linter designed to help you write good SQL and catch errors and bad SQL before it hits your database.

# TODO

  • Basic ANSI linting

  • MySQL

  • Redshift

  • Detecting dialect from a config file of some kind

# Changelog All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.0.3] - 2018-11-14 ### Added - Refactor of rules to allow rules with memory - Adding comma linting rules (correcting the single character matchers) - Adding mixed indentation linting rules - Integration with CircleCI, CodeCov and lots of badges

### Changed - Changed import of version information to fix bug with importing config.ini - Added basic violations/file reporting for some verbosities - Refactor of rules to simplify definition - Refactor of color cli output to make it more reusable

## [0.0.2] - 2018-11-09 ### Added - Longer project description - Proper exit codes - colorama for colored output

### Changed - Significant CLI changes - Much improved output from CLI

## [0.0.1] - 2018-11-07 ### Added - Initial Commit! - VERY ALPHA - Restructure into [package layout](https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure) - Adding Tox and Pytest so that they work

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

sqlfluff-0.0.3.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

sqlfluff-0.0.3-py3.6.egg (32.5 kB view details)

Uploaded Egg

File details

Details for the file sqlfluff-0.0.3.tar.gz.

File metadata

  • Download URL: sqlfluff-0.0.3.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sqlfluff-0.0.3.tar.gz
Algorithm Hash digest
SHA256 350fb51e7c5e78bb1a2e3ca02e9e25d98e24a538d23913829bd49f5360ef2e22
MD5 835f2cafb9ab92f7f7cc22314d28012a
BLAKE2b-256 01507ffc305070f4fa4349c0682dfef7b5efbb77ed977f7c910a2043fb46beea

See more details on using hashes here.

File details

Details for the file sqlfluff-0.0.3-py3.6.egg.

File metadata

  • Download URL: sqlfluff-0.0.3-py3.6.egg
  • Upload date:
  • Size: 32.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for sqlfluff-0.0.3-py3.6.egg
Algorithm Hash digest
SHA256 a719fa855118f0964938e21b621f028ca60feccc582ed8735dafa4189b46ac4e
MD5 7556e1f527f7562d4e50c866307a7e4d
BLAKE2b-256 4cf68de3de7f55e3d9f2e59fc23537a0cc9a8c7dbe1f5e23fc8de9084057974f

See more details on using hashes here.

Supported by

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