File tree 7 files changed +17
-11
lines changed
7 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ Authors
56
56
- Jesse Shapiro
57
57
- Jihoon Baek (`jihoon796 <https://github.com/jihoon796 >`_)
58
58
- Jim Gomez
59
+ - Jim King (`jeking3 <https://github.com/jeking3 >`_)
59
60
- Joao Junior (`joaojunior <https://github.com/joaojunior >`_)
60
61
- Joao Pedro Francese
61
62
- `jofusa <https://github.com/jofusa >`_
Original file line number Diff line number Diff line change 4
4
Unreleased
5
5
----------
6
6
7
- - Fixed bug where serializer of djangorestframework crashed if used with ``OrderingFilter `` (gh-821)
7
+ - Fixed bug where serializer of djangorestframework crashed if used with ``OrderingFilter `` (gh-821)
8
+ - Fixed `make format ` so it works by using tox (gh-859)
8
9
9
10
3.0.0 (2021-04-16)
10
11
------------------
Original file line number Diff line number Diff line change @@ -38,15 +38,13 @@ running tests::
38
38
This will install:
39
39
40
40
- `tox `_: used for running the tests against all supported versions of Django
41
- and Python
41
+ and Python as well as running tasks like lint, format, docs
42
42
- `coverage `_: used for analyzing test coverage for tests
43
- - `Sphinx `_: used for generating documentation
44
43
45
44
If not using a virtualenv, the command should be prepended with ``sudo ``.
46
45
47
46
.. _tox : http://testrun.org/tox/latest//
48
47
.. _coverage : http://nedbatchelder.com/code/coverage/
49
- .. _sphinx : http://sphinx-doc.org/
50
48
51
49
Documentation
52
50
-------------
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ clean-pyc:
14
14
find . -name ' *~' -exec rm -f {} +
15
15
16
16
init :
17
- pip install " tox>=1.8" coverage Sphinx
17
+ pip install " tox>=1.8" coverage
18
18
19
19
test :
20
20
coverage erase
24
24
docs : documentation
25
25
26
26
documentation :
27
- sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
27
+ tox -e docs
28
28
29
29
dist : clean
30
30
pip install -U wheel
@@ -44,5 +44,4 @@ release: dist
44
44
twine upload dist/*
45
45
46
46
format :
47
- isort docs simple_history runtests.py setup.py
48
- black docs simple_history runtests.py setup.py
47
+ tox -e format
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ def test_registering_with_tracked_abstract_base(self):
198
198
199
199
200
200
class TestCustomAttrForeignKey (TestCase ):
201
- """ https://github.com/jazzband/django-simple-history/issues/431 """
201
+ """https://github.com/jazzband/django-simple-history/issues/431"""
202
202
203
203
def test_custom_attr (self ):
204
204
field = ModelWithCustomAttrForeignKey .history .model ._meta .get_field ("poll" )
@@ -219,7 +219,7 @@ def test_migrate_command(self):
219
219
220
220
221
221
class TestModelWithHistoryInDifferentApp (TestCase ):
222
- """ https://github.com/jazzband/django-simple-history/issues/485 """
222
+ """https://github.com/jazzband/django-simple-history/issues/485"""
223
223
224
224
def test__different_app (self ):
225
225
appLabel = ModelWithHistoryInDifferentApp .history .model ._meta .app_label
Original file line number Diff line number Diff line change @@ -1189,7 +1189,7 @@ def test_migrations_include_order(self):
1189
1189
1190
1190
1191
1191
class TestLatest (TestCase ):
1192
- """" Test behavior of `latest()` without any field parameters"""
1192
+ """Test behavior of `latest()` without any field parameters"""
1193
1193
1194
1194
def setUp (self ):
1195
1195
poll = Poll .objects .create (question = "Does `latest()` work?" , pub_date = yesterday )
Original file line number Diff line number Diff line change @@ -43,6 +43,13 @@ commands =
43
43
mariadb: coverage run -a runtests.py --database =mariadb
44
44
coverage report
45
45
46
+ [testenv:format]
47
+ deps = -rrequirements/lint.txt
48
+ commands =
49
+ isort docs simple_history runtests.py setup.py
50
+ black docs simple_history runtests.py setup.py
51
+ flake8 simple_history
52
+
46
53
[testenv:lint]
47
54
deps = -rrequirements/lint.txt
48
55
commands =
You can’t perform that action at this time.
0 commit comments