flake8-strftime


Nameflake8-strftime JSON
Version 0.3.4 PyPI version JSON
download
home_pagehttps://github.com/python-formate/flake8_strftime
SummaryA flake8 plugin which checks for use of platform specific strftime codes.
upload_time2023-11-22 15:15:44
maintainer
docs_urlNone
author
requires_python>=3.6
licenseMIT
keywords date datetime flake8 strftime time
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
################
flake8_strftime
################

.. start short_desc

**A flake8 plugin which checks for use of platform specific strftime codes.**

.. end short_desc


.. start shields

.. list-table::
	:stub-columns: 1
	:widths: 10 90

	* - Docs
	  - |docs| |docs_check|
	* - Tests
	  - |actions_linux| |actions_windows| |actions_macos| |coveralls|
	* - PyPI
	  - |pypi-version| |supported-versions| |supported-implementations| |wheel|
	* - Anaconda
	  - |conda-version| |conda-platform|
	* - Activity
	  - |commits-latest| |commits-since| |maintained| |pypi-downloads|
	* - QA
	  - |codefactor| |actions_flake8| |actions_mypy|
	* - Other
	  - |license| |language| |requires|

.. |docs| image:: https://img.shields.io/readthedocs/flake8-strftime/latest?logo=read-the-docs
	:target: https://flake8-strftime.readthedocs.io/en/latest
	:alt: Documentation Build Status

.. |docs_check| image:: https://github.com/python-formate/flake8_strftime/workflows/Docs%20Check/badge.svg
	:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Docs+Check%22
	:alt: Docs Check Status

.. |actions_linux| image:: https://github.com/python-formate/flake8_strftime/workflows/Linux/badge.svg
	:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Linux%22
	:alt: Linux Test Status

.. |actions_windows| image:: https://github.com/python-formate/flake8_strftime/workflows/Windows/badge.svg
	:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Windows%22
	:alt: Windows Test Status

.. |actions_macos| image:: https://github.com/python-formate/flake8_strftime/workflows/macOS/badge.svg
	:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22macOS%22
	:alt: macOS Test Status

.. |actions_flake8| image:: https://github.com/python-formate/flake8_strftime/workflows/Flake8/badge.svg
	:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Flake8%22
	:alt: Flake8 Status

.. |actions_mypy| image:: https://github.com/python-formate/flake8_strftime/workflows/mypy/badge.svg
	:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22mypy%22
	:alt: mypy status

.. |requires| image:: https://dependency-dash.repo-helper.uk/github/python-formate/flake8_strftime/badge.svg
	:target: https://dependency-dash.repo-helper.uk/github/python-formate/flake8_strftime/
	:alt: Requirements Status

.. |coveralls| image:: https://img.shields.io/coveralls/github/python-formate/flake8_strftime/master?logo=coveralls
	:target: https://coveralls.io/github/python-formate/flake8_strftime?branch=master
	:alt: Coverage

.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/python-formate/flake8_strftime?logo=codefactor
	:target: https://www.codefactor.io/repository/github/python-formate/flake8_strftime
	:alt: CodeFactor Grade

.. |pypi-version| image:: https://img.shields.io/pypi/v/flake8_strftime
	:target: https://pypi.org/project/flake8_strftime/
	:alt: PyPI - Package Version

.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/flake8_strftime?logo=python&logoColor=white
	:target: https://pypi.org/project/flake8_strftime/
	:alt: PyPI - Supported Python Versions

.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/flake8_strftime
	:target: https://pypi.org/project/flake8_strftime/
	:alt: PyPI - Supported Implementations

.. |wheel| image:: https://img.shields.io/pypi/wheel/flake8_strftime
	:target: https://pypi.org/project/flake8_strftime/
	:alt: PyPI - Wheel

.. |conda-version| image:: https://img.shields.io/conda/v/domdfcoding/flake8_strftime?logo=anaconda
	:target: https://anaconda.org/domdfcoding/flake8_strftime
	:alt: Conda - Package Version

.. |conda-platform| image:: https://img.shields.io/conda/pn/domdfcoding/flake8_strftime?label=conda%7Cplatform
	:target: https://anaconda.org/domdfcoding/flake8_strftime
	:alt: Conda - Platform

.. |license| image:: https://img.shields.io/github/license/python-formate/flake8_strftime
	:target: https://github.com/python-formate/flake8_strftime/blob/master/LICENSE
	:alt: License

.. |language| image:: https://img.shields.io/github/languages/top/python-formate/flake8_strftime
	:alt: GitHub top language

.. |commits-since| image:: https://img.shields.io/github/commits-since/python-formate/flake8_strftime/v0.3.4
	:target: https://github.com/python-formate/flake8_strftime/pulse
	:alt: GitHub commits since tagged version

.. |commits-latest| image:: https://img.shields.io/github/last-commit/python-formate/flake8_strftime
	:target: https://github.com/python-formate/flake8_strftime/commit/master
	:alt: GitHub last commit

.. |maintained| image:: https://img.shields.io/maintenance/yes/2023
	:alt: Maintenance

.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/flake8_strftime
	:target: https://pypi.org/project/flake8_strftime/
	:alt: PyPI - Downloads

.. end shields

|

Installation
--------------

.. start installation

``flake8_strftime`` can be installed from PyPI or Anaconda.

To install with ``pip``:

.. code-block:: bash

	$ python -m pip install flake8_strftime

To install with ``conda``:

	* First add the required channels

	.. code-block:: bash

		$ conda config --add channels https://conda.anaconda.org/conda-forge
		$ conda config --add channels https://conda.anaconda.org/domdfcoding

	* Then install

	.. code-block:: bash

		$ conda install flake8_strftime

.. end installation

flake8 codes
--------------

============== ====================================
Code           Description
============== ====================================
STRFTIME001    Linux-specific strftime code used
STRFTIME002    Windows-specific strftime code used
============== ====================================


Use as a pre-commit hook
--------------------------

See `pre-commit <https://github.com/pre-commit/pre-commit>`_ for instructions

Sample ``.pre-commit-config.yaml``:

.. code-block:: yaml

	 - repo: https://gitlab.com/pycqa/flake8
	   rev: 3.8.1
	   hooks:
	    - id: flake8
	      additional_dependencies: [flake8-strftime==0.3.4]

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/python-formate/flake8_strftime",
    "name": "flake8-strftime",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "date,datetime,flake8,strftime,time",
    "author": "",
    "author_email": "Dominic Davis-Foster <dominic@davis-foster.co.uk>",
    "download_url": "https://files.pythonhosted.org/packages/57/f2/61f7d56c315adec46b77939a673d815e60e313c94c6716990f736fa9cf48/flake8_strftime-0.3.4.tar.gz",
    "platform": "Windows",
    "description": "\n################\nflake8_strftime\n################\n\n.. start short_desc\n\n**A flake8 plugin which checks for use of platform specific strftime codes.**\n\n.. end short_desc\n\n\n.. start shields\n\n.. list-table::\n\t:stub-columns: 1\n\t:widths: 10 90\n\n\t* - Docs\n\t  - |docs| |docs_check|\n\t* - Tests\n\t  - |actions_linux| |actions_windows| |actions_macos| |coveralls|\n\t* - PyPI\n\t  - |pypi-version| |supported-versions| |supported-implementations| |wheel|\n\t* - Anaconda\n\t  - |conda-version| |conda-platform|\n\t* - Activity\n\t  - |commits-latest| |commits-since| |maintained| |pypi-downloads|\n\t* - QA\n\t  - |codefactor| |actions_flake8| |actions_mypy|\n\t* - Other\n\t  - |license| |language| |requires|\n\n.. |docs| image:: https://img.shields.io/readthedocs/flake8-strftime/latest?logo=read-the-docs\n\t:target: https://flake8-strftime.readthedocs.io/en/latest\n\t:alt: Documentation Build Status\n\n.. |docs_check| image:: https://github.com/python-formate/flake8_strftime/workflows/Docs%20Check/badge.svg\n\t:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Docs+Check%22\n\t:alt: Docs Check Status\n\n.. |actions_linux| image:: https://github.com/python-formate/flake8_strftime/workflows/Linux/badge.svg\n\t:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Linux%22\n\t:alt: Linux Test Status\n\n.. |actions_windows| image:: https://github.com/python-formate/flake8_strftime/workflows/Windows/badge.svg\n\t:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Windows%22\n\t:alt: Windows Test Status\n\n.. |actions_macos| image:: https://github.com/python-formate/flake8_strftime/workflows/macOS/badge.svg\n\t:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22macOS%22\n\t:alt: macOS Test Status\n\n.. |actions_flake8| image:: https://github.com/python-formate/flake8_strftime/workflows/Flake8/badge.svg\n\t:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22Flake8%22\n\t:alt: Flake8 Status\n\n.. |actions_mypy| image:: https://github.com/python-formate/flake8_strftime/workflows/mypy/badge.svg\n\t:target: https://github.com/python-formate/flake8_strftime/actions?query=workflow%3A%22mypy%22\n\t:alt: mypy status\n\n.. |requires| image:: https://dependency-dash.repo-helper.uk/github/python-formate/flake8_strftime/badge.svg\n\t:target: https://dependency-dash.repo-helper.uk/github/python-formate/flake8_strftime/\n\t:alt: Requirements Status\n\n.. |coveralls| image:: https://img.shields.io/coveralls/github/python-formate/flake8_strftime/master?logo=coveralls\n\t:target: https://coveralls.io/github/python-formate/flake8_strftime?branch=master\n\t:alt: Coverage\n\n.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/python-formate/flake8_strftime?logo=codefactor\n\t:target: https://www.codefactor.io/repository/github/python-formate/flake8_strftime\n\t:alt: CodeFactor Grade\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/flake8_strftime\n\t:target: https://pypi.org/project/flake8_strftime/\n\t:alt: PyPI - Package Version\n\n.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/flake8_strftime?logo=python&logoColor=white\n\t:target: https://pypi.org/project/flake8_strftime/\n\t:alt: PyPI - Supported Python Versions\n\n.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/flake8_strftime\n\t:target: https://pypi.org/project/flake8_strftime/\n\t:alt: PyPI - Supported Implementations\n\n.. |wheel| image:: https://img.shields.io/pypi/wheel/flake8_strftime\n\t:target: https://pypi.org/project/flake8_strftime/\n\t:alt: PyPI - Wheel\n\n.. |conda-version| image:: https://img.shields.io/conda/v/domdfcoding/flake8_strftime?logo=anaconda\n\t:target: https://anaconda.org/domdfcoding/flake8_strftime\n\t:alt: Conda - Package Version\n\n.. |conda-platform| image:: https://img.shields.io/conda/pn/domdfcoding/flake8_strftime?label=conda%7Cplatform\n\t:target: https://anaconda.org/domdfcoding/flake8_strftime\n\t:alt: Conda - Platform\n\n.. |license| image:: https://img.shields.io/github/license/python-formate/flake8_strftime\n\t:target: https://github.com/python-formate/flake8_strftime/blob/master/LICENSE\n\t:alt: License\n\n.. |language| image:: https://img.shields.io/github/languages/top/python-formate/flake8_strftime\n\t:alt: GitHub top language\n\n.. |commits-since| image:: https://img.shields.io/github/commits-since/python-formate/flake8_strftime/v0.3.4\n\t:target: https://github.com/python-formate/flake8_strftime/pulse\n\t:alt: GitHub commits since tagged version\n\n.. |commits-latest| image:: https://img.shields.io/github/last-commit/python-formate/flake8_strftime\n\t:target: https://github.com/python-formate/flake8_strftime/commit/master\n\t:alt: GitHub last commit\n\n.. |maintained| image:: https://img.shields.io/maintenance/yes/2023\n\t:alt: Maintenance\n\n.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/flake8_strftime\n\t:target: https://pypi.org/project/flake8_strftime/\n\t:alt: PyPI - Downloads\n\n.. end shields\n\n|\n\nInstallation\n--------------\n\n.. start installation\n\n``flake8_strftime`` can be installed from PyPI or Anaconda.\n\nTo install with ``pip``:\n\n.. code-block:: bash\n\n\t$ python -m pip install flake8_strftime\n\nTo install with ``conda``:\n\n\t* First add the required channels\n\n\t.. code-block:: bash\n\n\t\t$ conda config --add channels https://conda.anaconda.org/conda-forge\n\t\t$ conda config --add channels https://conda.anaconda.org/domdfcoding\n\n\t* Then install\n\n\t.. code-block:: bash\n\n\t\t$ conda install flake8_strftime\n\n.. end installation\n\nflake8 codes\n--------------\n\n============== ====================================\nCode           Description\n============== ====================================\nSTRFTIME001    Linux-specific strftime code used\nSTRFTIME002    Windows-specific strftime code used\n============== ====================================\n\n\nUse as a pre-commit hook\n--------------------------\n\nSee `pre-commit <https://github.com/pre-commit/pre-commit>`_ for instructions\n\nSample ``.pre-commit-config.yaml``:\n\n.. code-block:: yaml\n\n\t - repo: https://gitlab.com/pycqa/flake8\n\t   rev: 3.8.1\n\t   hooks:\n\t    - id: flake8\n\t      additional_dependencies: [flake8-strftime==0.3.4]\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A flake8 plugin which checks for use of platform specific strftime codes.",
    "version": "0.3.4",
    "project_urls": {
        "Documentation": "https://flake8-strftime.readthedocs.io/en/latest",
        "Homepage": "https://github.com/python-formate/flake8_strftime",
        "Issue Tracker": "https://github.com/python-formate/flake8_strftime/issues",
        "Source Code": "https://github.com/python-formate/flake8_strftime"
    },
    "split_keywords": [
        "date",
        "datetime",
        "flake8",
        "strftime",
        "time"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b587e0e50cfa43dff751c2f68101717c44a6230495f8716a1caa104230ab989d",
                "md5": "eddde30f385ef94729956e22ccaffd0b",
                "sha256": "b0019af14eafc113e2b3452b52bccc7f604ad3cfd37551bf5fe268dfeb928bd3"
            },
            "downloads": -1,
            "filename": "flake8_strftime-0.3.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eddde30f385ef94729956e22ccaffd0b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 14976,
            "upload_time": "2023-11-22T15:15:42",
            "upload_time_iso_8601": "2023-11-22T15:15:42.454760Z",
            "url": "https://files.pythonhosted.org/packages/b5/87/e0e50cfa43dff751c2f68101717c44a6230495f8716a1caa104230ab989d/flake8_strftime-0.3.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57f261f7d56c315adec46b77939a673d815e60e313c94c6716990f736fa9cf48",
                "md5": "6e0563f633d8d2783fa4b4718235b045",
                "sha256": "db6b641a6c4562285d879d595481c612893bb8729d96ef4da356583c38a1013f"
            },
            "downloads": -1,
            "filename": "flake8_strftime-0.3.4.tar.gz",
            "has_sig": false,
            "md5_digest": "6e0563f633d8d2783fa4b4718235b045",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5449,
            "upload_time": "2023-11-22T15:15:44",
            "upload_time_iso_8601": "2023-11-22T15:15:44.297923Z",
            "url": "https://files.pythonhosted.org/packages/57/f2/61f7d56c315adec46b77939a673d815e60e313c94c6716990f736fa9cf48/flake8_strftime-0.3.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-22 15:15:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "python-formate",
    "github_project": "flake8_strftime",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "flake8-strftime"
}
        
Elapsed time: 2.16182s