Skip to content
master
Switch branches/tags
Code

Python Dev Tools

Needed and up-to-date tools to develop in Python (WORK IN PROGRESS)

https://travis-ci.com/vpoulailleau/python-dev-tools.svg?branch=master Documentation Status Downloads Test Coverage Maintainability Maintainability Maintainability

Documentation

The full documentation can be read at https://python-dev-tools.readthedocs.io.

Installation

In a terminal, run:

$ python3 -m pip install python-dev-tools --user --upgrade

Full documentation on installation: https://python-dev-tools.readthedocs.io/en/latest/installation.html

That's it! Use the provided linter (whatalinter), formatter (whataformatter) and precommit hook (TODO) where applicable.

Installation with Visual Studio Code

  • Follow the installation procedure for python-dev-tools
  • Be sure to have the official Python extension installed in VS Code
  • Open VS Code from within your activated virtual environment (in fact, make sure that whatalinter_vscode is in your PYTHON_PATH)
  • In VS Code, open settings (F1 key, then type "Open Settings (JSON)", then enter)
  • Add in the opened JSON file (before the closing }):
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8Path": "whatalinter_vscode",
"python.formatting.provider": "black",
"python.formatting.blackPath": "black",
"python.formatting.blackArgs": [],

Features

Integrate features of commonly used tools. This package provides usual dependencies to develop Python software.

License

BSD 3-Clause license, feel free to contribute: https://python-dev-tools.readthedocs.io/en/latest/contributing.html.

TODO

  • documentation
  • precommit

Changelog

2020.9.10

  • The path provided to whatalinter can be the one of a directory (recursive search of Python files)

2020.9.7

  • Remove E203 in flake8 for black compatibility

2020.9.4

  • Add whatalinter_vscode for Visual Studio Code integration

2020.9.2

  • Remove some warnings of wemake-python-styleguide, for instance allow f-strings

2020.9.1

  • Use poetry
  • Remove redundant linters
  • Change max line length to 88 (default value of black)
  • Replace pydocstyle with flake8-docstrings
  • Add wemake-python-styleguide

2019.10.22

  • Add flake8-2020 linter

2019.07.21

  • Add --quiet and --diff flags to whataformatter for VS Code compatibility

2019.07.20

  • Add black formatter
  • Add autoflake formatter
  • Add pyupgrade formatter

2019.04.08

  • Add flake8 linter
  • Add flake8-isort linter
  • Add pep8-naming linter
  • Add flake8-comprehensions linter
  • Add flake8-logging-format linter
  • Add flake8-bugbear linter
  • Add flake8-builtins linter
  • Add flake8-broken-line linter
  • Add flake8-fixme linter
  • Add flake8-mutable linter
  • Add flake8-debugger linter
  • Add flake8-variables-names linter
  • Add flake8-bandit linter

2019.03.02

  • Add pydocstyle linter

2019.03.01

  • Add McCabe complexity checker

2019.02.26

  • Add pyflakes linter
  • Add pycodestyle linter

2019.02.23

  • First release on PyPI.