Skip to content

Commit 36382ad

Browse files
authored
🔨 Fix typos & misconfigs (2018-10-09) (#43)
* 🔧 Fix line-length in iSort config * 📚 Fix indents in History and plan next version * 🚀 Remove duplicate entry in Manifest * 🚀 Sort commands in Makefile; remove GPG * 🔨 Fix typo in tests
1 parent b727907 commit 36382ad

File tree

5 files changed

+56
-41
lines changed

5 files changed

+56
-41
lines changed

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ multi_line_output=3
33
include_trailing_comma=True
44
force_grid_wrap=0
55
combine_as_imports=True
6-
line_length=88
6+
line_length=79

HISTORY.rst

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,43 @@
1+
=======
2+
History
3+
=======
4+
5+
Next Version!
6+
-------------
7+
- Write documentation in Sphinx
8+
- Integrate Read The Docs
9+
- Rework existing restructured text documents
10+
- Fix badges in Read Me
11+
12+
113
2.1.0 (2018-10-07)
2-
==================
3-
- Add support for Python-Markdown 3.0
4-
- Add support for Python 3.7 and PyPy3
5-
- Switch tests to use PyTest
6-
- Tox now checks package distribution
14+
------------------
15+
- Add support for Python-Markdown 3.0
16+
- Add support for Python 3.7 and PyPy3
17+
- Switch tests to use PyTest
18+
- Tox now checks package distribution
19+
- Integrate PyUp
20+
721

822
2.0.0 (2017-04-17)
9-
==================
10-
- Add test/support for Python-Markdown 2.6
11-
- Drop Support For:
12-
- Python 2.6 (EOL 2013)
13-
- Python 3.2 (EOL 2016)
14-
- Python-Markdown 2.4 (Superceded in 2014)
15-
- Fix Issue #2 - Setup.py errors; Description.rst missing
23+
------------------
24+
- Add test/support for Python-Markdown 2.6
25+
- Drop Support For:
26+
- Python 2.6 (EOL 2013)
27+
- Python 3.2 (EOL 2016)
28+
- Python-Markdown 2.4 (Superceded in 2014)
29+
- Fix Issue #2 - Setup.py errors; Description.rst missing
30+
1631

1732
1.0.1 (2014-10-17)
18-
==================
19-
- Update for Python-Markdown 2.5
33+
------------------
34+
- Update for Python-Markdown 2.5
35+
2036

2137
1.0.0 (2014-07-28)
22-
==================
23-
- Initial Release of Markdown Superscript Extension
24-
- Compatible with:
25-
- Python-Markdown 2.4
26-
- Python 2.6, 2.7
27-
- Python 3.2, 3.3, 3.4
38+
------------------
39+
- Initial Release of Markdown Superscript Extension
40+
- Compatible with:
41+
- Python-Markdown 2.4
42+
- Python 2.6, 2.7
43+
- Python 3.2, 3.3, 3.4

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ exclude tox.ini
1111
include AUTHORS.rst
1212
include HISTORY.rst
1313
include LICENSE
14-
include LICENSE
1514
include pyproject.toml
1615
include README.rst
1716
include setup.cfg

Makefile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
1-
.PHONY: check clean description dist release test
1+
.PHONY: all check clean dist release test
22

3-
test:
4-
nosetests --with-coverage --cover-package=mdx_superscript
5-
6-
tox:
7-
tox
8-
9-
description:
10-
rst2html.py README.rst > readme.html
3+
all:
4+
@echo 'Available Commands:'
5+
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null \
6+
| awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' \
7+
| sort \
8+
| egrep -v -e '^[^[:alnum:]]' -e '^$@$$' \
9+
| xargs -I {} echo ' {}'
1110

1211
check:
1312
python setup.py check
1413

15-
dist:
16-
python setup.py sdist --formats=gztar bdist_wheel
17-
gpg --armor --detach-sign -u 5878672C -a dist/MarkdownSuperscript*.whl
18-
gpg --armor --detach-sign -u 5878672C -a dist/MarkdownSuperscript*.tar.gz
19-
20-
release:
21-
twine upload dist/*
22-
2314
clean:
2415
find . -name "*.pyc" -delete
2516
find . -name "__pycache__" -delete
@@ -28,3 +19,12 @@ clean:
2819
rm -rf .tox
2920
rm -rf build
3021
rm -rf dist
22+
23+
dist:
24+
python setup.py sdist --formats=gztar bdist_wheel
25+
26+
release:
27+
twine upload dist/*
28+
29+
test:
30+
python setup.py test

tests/test_superscript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def extensions(request):
5555

5656

5757
@mark.parametrize(TEXT_DATA_FIELDS, TEXT_DATA)
58-
def test_subscript_extension(markdown_text, expected_html, extensions):
59-
"""Test the subscript extensions
58+
def test_superscript_extension(markdown_text, expected_html, extensions):
59+
"""Test the superscript extensions
6060
6161
PyTest parameterized arguments allow for multiple text inputs to be
6262
tested.

0 commit comments

Comments
 (0)