Skip to main content

A flake8 plugin to lint pandas in an opinionated way

Project description

pandas-vet

pandas-vet is a plugin for flake8 that provides opinionated linting for pandas code.

It began as a project during the PyCascades 2019 sprints.

Motivation

Starting with pandas can be daunting. The usual internet help sites are littered with different ways to do the same thing and some features that the pandas docs themselves discourage live on in the API. pandas-vet is (hopefully) a way to help make pandas a little more friendly for newcomers by taking some opinionated stances about pandas best practices. It is designed to help users reduce the pandas universe.

Many of the opinions stem from Ted Petrou's excellent Minimally Sufficient Pandas. Other ideas are drawn from pandas docs or elsewhere. The Pandas in Black and White flashcards have a lot of the same opinions too.

Installation

pandas-vet is a plugin for flake8. If you don't have flake8 already, it will install automatically when you install pandas-vet.

Usage

Once installed successfully in an environment that also has flake8 installed, pandas-vet should run whenever flake8 is run.

$ flake8 ...

See the flake8 docs for more information.

Contributing

pandas-vet is still in the very early stages. Contributions are welcome from the community on codes, tests, docs, and just about anything else.

Please submit an issue (or draft PR) first describing the types of changes you'd like to implement.

We use pytest and flake8 to validate our codebase. The TravisCI integration will complain on Pull Requests if there are any failing tests or lint violations. To check these locally, run the following commands:

pytest tests
flake8 pandas_vet setup.py tests --exclude tests/data

Code of Conduct

Because this project started during the PyCascades 2019 sprints, we adopt the PyCascades minimal expectation that we "Be excellent to each another". Beyond that, we follow the Python Software Foundation's Community Code of Conduct.

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

pandas-vet-0.0.2.dev0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pandas_vet-0.0.2.dev0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pandas-vet-0.0.2.dev0.tar.gz.

File metadata

  • Download URL: pandas-vet-0.0.2.dev0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for pandas-vet-0.0.2.dev0.tar.gz
Algorithm Hash digest
SHA256 3930b1e6eb28a81e09bcb93f7a7a133ae625e0f99eb8b0226f05eb18f558db64
MD5 4c6b1c945f4b3aff318cf411688668c7
BLAKE2b-256 5bab83398852b0a8fb132c529a53dc76c9c47061e903862e437bd539bc5288f7

See more details on using hashes here.

File details

Details for the file pandas_vet-0.0.2.dev0-py3-none-any.whl.

File metadata

  • Download URL: pandas_vet-0.0.2.dev0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for pandas_vet-0.0.2.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 8577f2f2ff4a7c509563d6eb857aeb4bff5428cef37a29534776741f3f2dcdc4
MD5 e4f9ab613af517ca470b6135f48406b5
BLAKE2b-256 e5d21251c19c3559e254ef66bb7ce97364aee69d401af2e15a7f35d50ed24b85

See more details on using hashes here.

Supported by

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