Skip to content

Commit

Permalink
Merge pull request #27 from juliotrigo/add_rst_lint
Browse files Browse the repository at this point in the history
Add reStructuredText linter
  • Loading branch information
juliotrigo authored Feb 21, 2019
2 parents 41ca744 + e330856 commit 3534bdc
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Released 2017-05-22

* Adds support for boolean functions within filters
* Adds the possibility of supplying a single dictionary as filters when
only one filter is provided
only one filter is provided
* Makes the `op` filter attribute optional: `==` is the default operator

Version 0.2.0
Expand Down
6 changes: 6 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include CHANGELOG.rst
include LICENSE
include README.rst

global-exclude __pycache__
global-exclude *.pyc
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
.PHONY: test


rst-lint:
rst-lint README.rst
rst-lint CHANGELOG.rst

flake8:
flake8 sqlalchemy_filters test

test: flake8
@py.test test $(ARGS)
pytest test $(ARGS)

coverage: flake8
coverage: flake8 rst-lint
coverage run --source sqlalchemy_filters -m pytest test $(ARGS)
coverage report -m --fail-under 100
11 changes: 11 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ SQLAlchemy-filters
Filter, sort and paginate SQLAlchemy query objects.
Ideal for exposing these actions over a REST API.


.. image:: https://img.shields.io/pypi/v/sqlalchemy-filters.svg
:target: https://pypi.org/project/sqlalchemy-filters/

.. image:: https://img.shields.io/pypi/pyversions/sqlalchemy-filters.svg
:target: https://pypi.org/project/sqlalchemy-filters/

.. image:: https://travis-ci.org/juliotrigo/sqlalchemy-filters.svg?branch=master
:target: https://travis-ci.org/juliotrigo/sqlalchemy-filters


Filtering
---------

Expand Down
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@
],
extras_require={
'dev': [
'pytest==3.0.5',
'flake8==3.2.1',
'coverage==4.3.1',
'sqlalchemy-utils==0.32.12',
'pytest==4.3.0',
'flake8==3.7.6',
'coverage==4.5.2',
'sqlalchemy-utils==0.33.11',
'restructuredtext-lint==1.2.2',
'Pygments==2.3.1',
],
'mysql': [
'mysql-connector-python-rf==2.1.3',
'mysql-connector-python-rf==2.2.2',
],
'python2': [
"funcsigs>=1.0.2"
Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[tox]
envlist = {py27, py34, py35, py36, py37}
skipdist=True
skipsdist = True

[testenv]
whitelist_externals = make
usedevelop = true
extras =
dev
mysql
deps =
py27: funcsigs

commands =
pip install -U --editable ".[dev, mysql]"
make coverage ARGS='-x -vv'

0 comments on commit 3534bdc

Please sign in to comment.