Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Released 0.16.1 #129

Merged
merged 7 commits into from
Apr 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ target/

# Virtualenv
.venv
.pytest-pylint

# Pycharm
.idea
Expand Down
46 changes: 46 additions & 0 deletions DEVELOPMENT.md → DEVELOPMENT.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
pytest pylint
-------------

How it works
============
Helpers for running pylint with py.test and have configurable rule
types (i.e. Convention, Warn, and Error) fail the
build. You can also specify a pylintrc file.
Expand Down Expand Up @@ -48,3 +52,45 @@ errors related to the file.
All PylintFile returned during `pytest_collect_file`, returns an one
element list of PyLintItem. The Item implements runtest method which will
get the pylint messages per file and expose to the user.

Development Environment
=======================

Suggestion 1
~~~~~~~~~~~~
Use `pyenv <https://github.com/pyenv/pyenv>`_, and install all the versions supported by the plugin.
Double-check on `tox.ini <https://github.com/carsongee/pytest-pylint//lob/master/DEVELOPMENT.rst>`_.

.. code-block:: shell

pyenv install 3.5.9

pyenv install 3.6.10

pyenv install 3.7.7

pyenv install 3.8.2

Set the installed versions as global, that will allow tox to find all of them.

.. code-block:: shell

pyenv global 3.5.9 3.6.10 3.7.7 3.8.2

Create virtualenv, install dependencies, run tests, and tox:

.. code-block:: shell

python3.8 -m venv .pytest_pylint

source .pytest_pylint/bin/activate

pip install --upgrade setuptools pip tox

python setup.py install

python setup.py test

tox

The development environment is complete.
6 changes: 5 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ Development
===========

If you want to help development, there is
`overview documentation <https://github.com/carsongee/pytest-pylint//lob/master/DEVELOPMENT.rst>`_
`overview documentation <https://github.com/carsongee/pytest-pylint/blob/master/DEVELOPMENT.rst>`_

Releases
========

0.16.1
~~~~~~
- Corrected documentation and correctly pinned dependencies properly

0.16.0
~~~~~~
- Switched to new ``from_parent`` API and added development documentation `dineshtrivedi <https://github.com/dineshtrivedi>`_
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
description='pytest plugin to check source code with pylint',
long_description=open("README.rst").read(),
license='MIT',
version='0.16.0',
version='0.16.1',
author='Carson Gee',
author_email='x@carsongee.com',
url='https://github.com/carsongee/pytest-pylint',
packages=['pytest_pylint'],
entry_points={'pytest11': ['pylint = pytest_pylint.plugin']},
python_requires=">=3.5",
install_requires=['pytest>=5.0', 'pylint>=2.0.0', 'toml>=0.7.1'],
install_requires=['pytest>=5.4', 'pylint>=2.3.0', 'toml>=0.7.1'],
setup_requires=['pytest-runner'],
tests_require=['coverage', 'pytest-flake8'],
classifiers=[
Expand Down