Needed and up-to-date tools to develop in Python
Project description
Python Dev Tools
Needed and up-to-date tools to develop in Python (WORK IN PROGRESS)
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
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": "/home/vincent/.local/bin/whatalinter",
Adapt the previous path according to your installation.
Features
Integrate features of commonly used tools. This package provides usual dependencies to develop Python software.
Simple linter
whatalinter a_python_file.py lints a_python_file.py
output is compatible with the one of pycodestyle (formerly named pep8) for easy integration in text editors and IDE
based on
pycodestyle: https://github.com/PyCQA/pycodestyle
pyflakes: https://github.com/PyCQA/pyflakes
mccabe: https://github.com/pycqa/mccabe
pydocstyle: https://github.com/PyCQA/pydocstyle
flake8 and plugins: https://gitlab.com/pycqa/flake8
flake8-bandit: https://github.com/tylerwince/flake8-bandit
flake8-broken-line: https://github.com/sobolevn/flake8-broken-line
flake8-bugbear: https://github.com/PyCQA/flake8-bugbear
flake8-builtins: https://github.com/gforcada/flake8-builtins
flake8-comprehensions: https://github.com/adamchainz/flake8-comprehensions
flake8-debugger: https://github.com/JBKahn/flake8-debugger
flake8-fixme: https://github.com/tommilligan/flake8-fixme
flake8-isort: https://github.com/gforcada/flake8-isort
flake8-logging-format: https://github.com/globality-corp/flake8-logging-format
flake8-mutable: https://github.com/ebeweber/flake8-mutable
flake8-variables-names: https://github.com/best-doctor/flake8-variables-names
pep8-naming: https://github.com/PyCQA/pep8-naming
Simple formatter
whataformatter a_python_file.py formats a_python_file.py
based on
autoflake: https://github.com/myint/autoflake
pyupgrade: https://github.com/asottile/pyupgrade
Simple precommit hook
TODO
License
BSD 3-Clause license, feel free to contribute: https://python-dev-tools.readthedocs.io/en/latest/contributing.html.
TODO
documentation
linter
add more linters
formatter
precommit
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
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
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
Built Distribution
File details
Details for the file python_dev_tools-2019.8.24.tar.gz
.
File metadata
- Download URL: python_dev_tools-2019.8.24.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a634ba563fec961446b997648f69f9cd87822a52c19b3ee8152680f0c217306f |
|
MD5 | 18ab6ab38a003c95a4bc72fd51b366b1 |
|
BLAKE2b-256 | 4f7e5d4517ce0f91771480a9fd74f9d0aca68b1bcfa351d0cdbf596eb7324ad5 |
File details
Details for the file python_dev_tools-2019.8.24-py2.py3-none-any.whl
.
File metadata
- Download URL: python_dev_tools-2019.8.24-py2.py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07bee07a8e5124731a71cc8a9529fa67b873cbce31813509f5e2e50128ebffce |
|
MD5 | a885bba5e3fbbf1826be614d3ce84211 |
|
BLAKE2b-256 | e3c4d30b8a5b9c9e6c50674c2a9a9573aecedbe5169ad2f82920d6dca314f181 |