Metadata-Version: 2.1
Name: pytest-yapf3
Version: 0.4.0
Summary: Validate your Python file format with yapf
Home-page: https://github.com/yanqd0/pytest-yapf3
Author: Yan QiDong
Author-email: yanqd0@outlook.com
License: MIT
Description: # pytest-yapf3
        
        [![Travis](https://travis-ci.org/yanqd0/pytest-yapf3.svg?branch=master)](https://travis-ci.org/yanqd0/pytest-yapf3)
        [![AppVeyor](https://ci.appveyor.com/api/projects/status/umf6393qo2y7afog/branch/master?svg=true)](https://ci.appveyor.com/project/yanqd0/pytest-yapf3/branch/master)
        [![codecov](https://codecov.io/gh/yanqd0/pytest-yapf3/branch/master/graph/badge.svg)](https://codecov.io/gh/yanqd0/pytest-yapf3)
        
        Validate your Python file format with yapf.
        
        This is a [pytest] plugin, which make sure your python file is exactly formatted by yapf,
        or it will crash when running `pytest`.
        
        [pytest]:https://pytest.org/
        
        ## Install
        
        [![Version](https://img.shields.io/pypi/v/pytest-yapf3)](https://pypi.org/project/pytest-yapf3/)
        [![Python](https://img.shields.io/pypi/pyversions/pytest-yapf3)](https://pypi.org/project/pytest-yapf3/)
        [![Format](https://img.shields.io/pypi/format/pytest-yapf3)](https://pypi.org/project/pytest-yapf3/)
        [![Status](https://img.shields.io/pypi/status/pytest-yapf3)](https://pypi.org/classifiers/)
        [![Download](https://img.shields.io/pypi/dm/pytest-yapf3)](https://pypi.org/project/pytest-yapf3/)
        [![MIT](https://img.shields.io/pypi/l/pytest-yapf3)](https://github.com/yanqd0/pytest-yapf3/blob/master/LICENSE)
        
        ```sh
        pip install pytest-yapf3
        ```
        
        ## Usage
        
        Modify `setup.cfg` (or `pytest.ini`):
        
        ```ini
        [tool:pytest]
        addopts =
            --yapf
            --yapfdiff
        yapf-ignore =
            setup.py
            src/package/auto_generated/**.py
        ```
        
        Add `--yapf` to [pytest] configuration `addopts`.
        By default, only line summaries is displayed.
        With `--yapfdiff`, a full text of `yapf -d` is displayed.
        
        An optional `yapf-ignore` is supported.
        Each line specifies a glob pattern of files which should not check `yapf`.
        
        ## Features and Todos
        
        - [x] Basic support to validate `yapf`.
        - [x] Fix the diff line count error and improve the performance.
        - [x] Display `YAPF-check` as the error session name.
        - [x] Display `YAPF` in `pytest --verbose`.
        - [x] Add `yapf` as a marker to enable `pytest -m yapf`.
        - [x] Support `yapf-ignore` to ignore specified files.
        - [ ] Skip running if a file is not changed.
        - [ ] 100% test coverage.
        
        ## Develop
        
        Prepare the environment:
        
        ```sh
        source your/virtual/env
        pip install -e .[dev]
        ```
        
        Run test:
        
        ```sh
        pytest
        ```
        
        ## License
        
        > The MIT License (MIT)
        >
        > Copyright (c) 2019 Yan QiDong
        
        This repository is forked from [pytest-yapf] in 2019, which is [not maintained] since 2017.
        Besides extra features, the project structure is adjusted,
        and the code is enhanced to pass linters like flake8, pylint and, of course, yapf.
        
        [pytest-yapf]:https://github.com/django-stars/pytest-yapf
        [not maintained]:https://github.com/django-stars/pytest-yapf/issues/1
        
        # Change Log
        
        ## Release 0.4.0
        
        - Add `yapf` as a pytest marker to enable `pytest -m yapf`
        - Support `yapf-ignore` to ignore specified files
        - Fix a probabilistic issue caused by `\r`
        
        ## Release 0.3.0
        
        - Display `YAPF-check` as the error session name
        - Display `::YAPF` in `pytest --verbose`
        
        ## Release 0.2.0
        
        Since forked from [pytest-yapf](https://pypi.org/project/pytest-yapf/) `0.1.1`, there are some improvements:
        
        - Restructure the project and rewrite documents
        - Support Python 3.4+ only
        - Add linters to pytest, and fix their errors
        - Fix the line count error
        - Change build configurations in [Travis] and [AppVeyor]
        - Support coverage and displayed in [codecov]
        
        [Travis]:https://travis-ci.org
        [AppVeyor]:https://appveyor.com
        [codecov]:https://codecov.io
        
Keywords: pytest,yapf,sc
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: Pytest
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Testing
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.4
Description-Content-Type: text/markdown
Provides-Extra: dev
