Skip to content

Commit

Permalink
Merge pull request #172 from carsongee/rc/0.19.0
Browse files Browse the repository at this point in the history
Released 0.19.0
  • Loading branch information
carsongee authored Sep 10, 2022
2 parents 9cd8e51 + ae37a23 commit 0c83291
Show file tree
Hide file tree
Showing 13 changed files with 451 additions and 412 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Tests

on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11.0-rc - 3.11"

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox tox-py
- name: Run tox targets for ${{ matrix.python-version }}
run: tox --py current

- name: Run coverage
run: tox -e coverage

- name: Run linters
run: tox -e qa
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

17 changes: 9 additions & 8 deletions DEVELOPMENT.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ by previous plugins will run. For instance, in case PylintPlugin had
`pytest_addoption` implemented, which runs before `pytest_configure`
in the hook cycle, it would be executed once PylintPlugin got registered.

PylintPlugin uses the `pytest_collect_file` hook which is called wih every
PylintPlugin uses the `pytest_collect_file` hook which is called with every
file available in the test target dir. This hook collects all the file
pylint should run on, in this case files with extension ".py".

Expand Down Expand Up @@ -63,25 +63,26 @@ Double-check on `tox.ini <https://github.com/carsongee/pytest-pylint//lob/master

.. code-block:: shell
pyenv install 3.5.9
pyenv install 3.6.10
pyenv install 3.7.7
pyenv install 3.8.2
pyenv install 3.9.13
pyenv install 3.10.6
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
pyenv global 3.10.6 3.9.13 3.8.2 3.7.7
Create virtualenv, install dependencies, run tests, and tox:

.. code-block:: shell
python3.8 -m venv .pytest_pylint
python3.10 -m venv .pytest_pylint
source .pytest_pylint/bin/activate
Expand All @@ -93,4 +94,4 @@ Create virtualenv, install dependencies, run tests, and tox:
tox
The development environment is complete.
The development environment is complete.
17 changes: 13 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pytest pylint
-------------
.. image:: https://img.shields.io/travis/carsongee/pytest-pylint.svg
:target: https://travis-ci.org/carsongee/pytest-pylint
.. image:: https://github.com/carsongee/pytest-pylint/actions/workflows/tests.yml/badge.svg
:target: https://github.com/carsongee/pytest-pylint/actions/workflows/tests.yml
.. image:: https://img.shields.io/coveralls/carsongee/pytest-pylint.svg
:target: https://coveralls.io/r/carsongee/pytest-pylint
.. image:: https://img.shields.io/pypi/v/pytest-pylint.svg
Expand Down Expand Up @@ -42,7 +42,7 @@ tests by typing:
Acknowledgements
================

This code is heavily based on
This code is heavily based on
`pytest-flakes <https://github.com/fschulze/pytest-flakes>`__

Development
Expand All @@ -54,6 +54,15 @@ If you want to help development, there is
Releases
========

0.19.0
~~~~~~

- Switched to GitHub Actions for CI thanks to `michael-k <https://github.com/michael-k>`__
- Switched to using smart PyLint RC discovery thanks to `bennyrowland <https://github.com/bennyrowland>`__
- Correcting rootdir/rootpath issues in pytest >7.x
- Deprecated support for Python <3.7


0.18.0
~~~~~~

Expand Down Expand Up @@ -161,7 +170,7 @@ Releases
0.8.0
~~~~~

- `bdrung <https://github.com/bdrung>`__ corrected inconsitent returns in a function
- `bdrung <https://github.com/bdrung>`__ corrected inconsistent returns in a function
- Dropped Python 3.3 support

0.7.1
Expand Down
7 changes: 6 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[TYPECHECK]
[MESSAGES CONTROL]
disable = C0330, C0326

[FORMAT]
max-line-length = 88

[TYPECHECK]
ignored-classes = pytest
Loading

0 comments on commit 0c83291

Please sign in to comment.