Skip to content

Commit b282a21

Browse files
authored
Merge pull request #125 from asherf/md
Fix markdown lint issues.
2 parents 23d4843 + 9af4d46 commit b282a21

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ install:
3232
script:
3333
- pycodestyle django_prometheus/.
3434
- python setup.py test
35-
- (cd django_prometheus/tests/end2end; PYTHONPATH=../../.. python manage.py test)
35+
- cd django_prometheus/tests/end2end && PYTHONPATH=../../.. python manage.py test

CONTRIBUTING.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ run automatically.
1515

1616
Please write unit tests for your change. There are two kinds of tests:
1717

18-
* Regular unit tests that test the code directly, without loading
19-
Django. This is limited to pieces of the code that don't depend on
20-
Django, since a lot of the Django code will require a full Django
21-
environment (anything that interacts with models, for instance,
22-
needs a full database configuration).
23-
* End-to-end tests are Django unit tests in a test application. The
24-
test application doubles as an easy way to interactively test your
25-
changes. It uses most of the basic Django features and a few
26-
advanced features, so you can test things for yourself.
18+
* Regular unit tests that test the code directly, without loading
19+
Django. This is limited to pieces of the code that don't depend on
20+
Django, since a lot of the Django code will require a full Django
21+
environment (anything that interacts with models, for instance,
22+
needs a full database configuration).
23+
* End-to-end tests are Django unit tests in a test application. The
24+
test application doubles as an easy way to interactively test your
25+
changes. It uses most of the basic Django features and a few
26+
advanced features, so you can test things for yourself.
2727

2828
### Running all tests
2929

3030
```shell
31-
$ python setup.py test
32-
$ (cd tests/end2end/; PYTHONPATH=../.. ./manage.py test)
31+
python setup.py test
32+
cd tests/end2end/ && PYTHONPATH=../.. ./manage.py test
3333
```
3434

3535
The former runs the regular unit tests, the latter runs the Django
@@ -41,15 +41,15 @@ setup.py install`.
4141
### Running the test Django app
4242

4343
```shell
44-
$ (cd tests/end2end/; PYTHONPATH=../.. ./manage.py runserver)
44+
cd tests/end2end/ && PYTHONPATH=../.. ./manage.py runserver
4545
```
4646

4747
By default, this will start serving on http://localhost:8000/. Metrics
4848
are available at `/metrics`.
4949

5050
## Running Prometheus
5151

52-
See http://prometheus.io/docs/ for instructions on installing
52+
See <http://prometheus.io/docs/> for instructions on installing
5353
Prometheus. Once you have Prometheus installed, you can use the
5454
example rules and dashboard in `examples/prometheus/`. See
5555
`examples/prometheus/README.md` to run Prometheus and view the example

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Export Django monitoring metrics for Prometheus.io
55
[![Build Status](https://travis-ci.org/korfuri/django-prometheus.svg?branch=master)](https://travis-ci.org/korfuri/django-prometheus)
66
[![PyPi page link -- Python versions](https://img.shields.io/pypi/pyversions/django-prometheus.svg)](https://pypi.python.org/pypi/django-prometheus)
77

8-
98
## Usage
109

1110
### Requirements
@@ -15,11 +14,13 @@ Export Django monitoring metrics for Prometheus.io
1514
### Installation
1615

1716
Install with:
17+
1818
```shell
1919
pip install django-prometheus
2020
```
2121

2222
Or, if you're using a development version cloned from this repository:
23+
2324
```shell
2425
python path-to-where-you-cloned-django-prometheus/setup.py install
2526
```
@@ -127,7 +128,6 @@ there are unapplied migrations.
127128
If you want to disable the Django migration metrics, set the
128129
`PROMETHEUS_EXPORT_MIGRATIONS` setting to False.
129130

130-
131131
### Monitoring and aggregating the metrics
132132

133133
Prometheus is quite easy to set up. An example prometheus.conf to
@@ -174,7 +174,6 @@ Second step is to create the /metrics end point, for that we need
174174
another file (called urls_prometheus_wrapper.py in this example) that
175175
will wraps the apps URLs and add one on top:
176176

177-
178177
```python
179178
from django.conf.urls import include, url
180179

0 commit comments

Comments
 (0)