Usage¶
This library provides the Flake8 plugin flake8-strftime
which checks for use of platform specific strftime codes.
Flake8 codes¶
Code |
Description |
---|---|
STRFTIME001 |
Linux-specific strftime code used. |
STRFTIME002 |
Windows-specific strftime code used. |
Pre-commit hook¶
flake8-strftime
can also be used as a pre-commit
hook
See pre-commit for instructions
Sample .pre-commit-config.yaml
:
- repo: https://github.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
additional_dependencies:
- flake8_strftime==0.3.0