Skip to main content

Needed and up-to-date tools to develop in Python

None

Project description

Python Dev Tools

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

https://img.shields.io/pypi/v/python_dev_tools.svg https://img.shields.io/pypi/l/python_dev_tools.svg https://travis-ci.com/vpoulailleau/python-dev-tools.svg?branch=master Documentation Status Downloads Coverage Status Maintainability Maintainability Maintainability

Documentation

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

Installation

Install pipx if not yet installed: https://pipxproject.github.io/pipx/installation/

Then in a terminal, run:

$ pipx install python-dev-tools

Then add the new bin directory to the path. On Linux for instance, run:

$ TOOLS_PATH=$(ls -l ~/.local/bin/whataformatter | sed -e "s/.*-> //" | sed -e "s#/bin.*#/bin#")
$ userpath prepend $TOOLS_PATH

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

That’s it! Use the provided linter, formatter and precommit hook where applicable.

Upgrade

If not using pipx, follow again the installation procedure.

If using pipx (preferred installation method), run in a terminal:

$ pipx upgrade python-dev-tools

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

  • In VS Code, open settings (F1 key, then type “Open Settings (JSON)”, then enter)

  • Add in the opened JSON file:

"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8Path": "~/.local/bin/whatalinter",
"python.formatting.provider": "black",
"python.formatting.blackPath": "~/.local/bin/whataformatter",
"python.formatting.blackArgs": [],
  • Adapt the previous path according to your installation.

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

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

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.

Project details

None

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

python_dev_tools-2020.2.5.tar.gz (18.9 kB view hashes)

Uploaded Source

Built Distribution

python_dev_tools-2020.2.5-py2.py3-none-any.whl (14.2 kB view hashes)

Uploaded Python 2 Python 3

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