Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bec36fd

Browse files
committed
Fix static analysis errors
1 parent 55be10f commit bec36fd

File tree

7 files changed

+22
-16
lines changed

7 files changed

+22
-16
lines changed

.landscape.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
---
12
doc-warnings: yes
23
strictness: veryhigh
34
pep8:
45
full: true
5-

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
language: python
23
services: redis-server
34
python:

HISTORY.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ History
3838

3939

4040
0.0.5 (17/2/2014)
41-
----------------
41+
-----------------
4242

43-
- Improved support for the config prefix.
43+
- Improved suppot for the config prefix.
4444

4545
0.0.4 (17/2/2014)
46-
----------------
46+
-----------------
4747

4848
- Added support for config_prefix, allowing multiple DBs.
4949

README.rst

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
Flask-Redis
22
===========
33

4-
.. image:: https://travis-ci.org/underyx/flask-redis.svg?branch=master
4+
.. image:: https://api.travis-ci.org/underyx/flask-redis.svg?branch=master
55
:target: https://travis-ci.org/underyx/flask-redis
66
:alt: Test Suite
77

88
.. image:: https://coveralls.io/repos/underyx/flask-redis/badge.svg
9-
:target: https://coveralls.io/r/underyx/flask-redis
9+
:target: https://coveralls.io/github/underyx/flask-redis
1010
:alt: Test Coverage
1111

1212
.. image:: https://landscape.io/github/underyx/flask-redis/master/landscape.svg?style=flat
13-
:target: https://landscape.io/github/underyx/flask-redis/master
13+
:target: https://landscape.io/github/underyx/flask-redis
1414
:alt: Code Health
1515

1616
Adds Redis support to Flask.
1717

18-
Built on top of `redis-py <https://github.com/andymccurdy/redis-py>`_.
18+
Built on top of redis-py_.
1919

2020
Contributors
2121
------------
@@ -120,7 +120,8 @@ classmethod that ``FlaskRedis`` depends on, so we wrap it and add our own.
120120
Usage
121121
-----
122122

123-
``FlaskRedis`` proxies attribute access to an underlying Redis connection. So treat it as if it were a regular ``Redis`` instance.
123+
``FlaskRedis`` proxies attribute access to an underlying Redis connection. So treat it as if it were a regular ``Redis``
124+
instance.
124125

125126
.. code-block:: python
126127
@@ -130,19 +131,21 @@ Usage
130131
def index():
131132
return redis_store.get('potato', 'Not Set')
132133
133-
**Protip:** The `redis-py <https://github.com/andymccurdy/redis-py>`_ package currently holds the 'redis' namespace,
134-
so if you are looking to make use of it, your Redis object shouldn't be named 'redis'.
134+
**Protip:** The redis-py_ package currently holds the 'redis' namespace, so if you are looking to make use of it, your
135+
Redis object shouldn't be named 'redis'.
135136

136-
For detailed instructions regarding the usage of the client, check the `redis-py <https://github.com/andymccurdy/redis-py>`_ documentation.
137+
For detailed instructions regarding the usage of the client, check the redis-py_ documentation.
137138

138139
Advanced features, such as Lua scripting, pipelines and callbacks are detailed within the projects README.
139140

140141
Contribute
141142
----------
142143

143-
#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.
144+
#. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a
145+
Contributor Friendly tag for issues that should be ideal for people who are not very familiar with the codebase yet.
144146
#. Fork `the repository`_ on Github to start making your changes to the **master** branch (or branch off of it).
145147
#. Write a test which shows that the bug was fixed or that the feature works as expected.
146148
#. Send a pull request and bug the maintainer until it gets merged and published.
147149

148-
.. _`the repository`: http://github.com/underyx/flask-redis
150+
.. _`the repository`: https://github.com/underyx/flask-redis
151+
.. _redis-py: https://github.com/andymccurdy/redis-py

flask_redis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010

1111
class FlaskRedis(object):
12+
1213
def __init__(self, app=None, strict=False, config_prefix='REDIS'):
1314
self._redis_client = None
1415
self.provider_class = None

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env python3
22

33
import io
4-
from setuptools import setup
54

5+
from setuptools import setup
66

77
with io.open('README.rst', encoding='utf-8') as f:
88
README = f.read()

test_flask_redis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"""Tests for Flask-Redis."""
55

66
import flask
7-
import pytest
87
from flask_redis import FlaskRedis
8+
import pytest
99

1010

1111
@pytest.fixture
@@ -61,6 +61,7 @@ def test_custom_provider(app):
6161
'''Test that FlaskRedis can be instructed to use a different Redis client,
6262
like StrictRedis'''
6363
class FakeProvider(object):
64+
6465
@classmethod
6566
def from_url(cls, *args, **kwargs):
6667
return cls()

0 commit comments

Comments
 (0)