Skip to main content

Flake8 Linter for Strings

Project description

flake8-strings

pypi Python: 3.6+ Downloads Build Status Code coverage License: MIT Code style: black

Description

Flake8 Linter for Strings

Checks:

  • STR001: Unnecessary use of backslash escaping

e.g:

Bad:

path = 'C:\\Users\\root'

Good:

path = r'C:\Users\root'

Installation

pip install flake8-strings

Usage

flake8 <your code>

For developers

Create venv and install deps

make init

Install git precommit hook

make precommit_install

Run linters, autoformat, tests etc.

make pretty lint test

Bump new version

make bump_major
make bump_minor
make bump_patch

License

MIT

Change Log

Unreleased

  • ...

0.1.1 - 2020-03-14

  • ...

0.1.0 - 2020-03-14

  • initial

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

flake8-strings-0.1.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

flake8_strings-0.1.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded 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