Skip to content

Commit 7b6e4da

Browse files
author
Abhijeet
committed
Updated docs and linting
1 parent ca60641 commit 7b6e4da

File tree

13 files changed

+310
-112
lines changed

13 files changed

+310
-112
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
exclude: 'docs|node_modules|migrations|.git|.tox'
2+
default_stages: [commit]
3+
fail_fast: true
4+
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.0.1
8+
hooks:
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
12+
- repo: https://github.com/psf/black
13+
rev: 21.7b0
14+
hooks:
15+
- id: black
16+
17+
- repo: https://github.com/timothycrosley/isort
18+
rev: 5.9.3
19+
hooks:
20+
- id: isort

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Credits
55
Development Lead
66
----------------
77

8-
* Abhijeet Pal
8+
* Abhijeet Pal
99

1010
Contributors
1111
------------

HISTORY.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ History
66
------------------
77

88
* First release on PyPI.
9-

LICENSE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22-

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Lorem Text
1313

1414

1515

16-
Dummy lorem ipsum text generator
16+
Dummy lorem ipsum text generator
1717

1818

1919
* Free software: MIT license
@@ -45,7 +45,7 @@ For randomly generated sentence of lorem ipsum text where the first word is capi
4545

4646
lorem.sentence()
4747

48-
Generate a single paragraph::
48+
Generate a single paragraph::
4949

5050
lorem.paragraph()
5151

@@ -62,7 +62,7 @@ Generate random lorem ipsum words seperated with single space::
6262
lorem.words(words)
6363

6464

65-
Command Line Interface
65+
Command Line Interface
6666
----------------------
6767

6868
For randomly generated paragraph of lorem ipsum text::
@@ -71,7 +71,7 @@ For randomly generated paragraph of lorem ipsum text::
7171

7272
Lorem ipsum sentence::
7373

74-
lorem_text --s
74+
lorem_text --s
7575

7676
Lorem ipsum words::
7777

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
# The theme to use for HTML and HTML Help pages. See the documentation for
8484
# a list of builtin themes.
8585
#
86-
html_theme = 'alabaster'
86+
html_theme = "sphinx_rtd_theme"
8787

8888
# Theme options are theme-specific and customize the look and feel of a
8989
# theme further. For a list of options available for each theme, see the

lorem_text/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
"""Top-level package for Lorem Text."""
22

33
__author__ = """Abhijeet Pal"""
4-
__version__ = '1.0'
4+
__version__ = "1.0"

lorem_text/cli.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
"""Console script for lorem_text."""
2-
import click
32
import sys
3+
4+
import click
5+
46
from lorem_text import lorem
57

68

79
@click.command()
8-
@click.option('--words', type=int, help="Returns lorem ipsum words")
9-
@click.option('--s', is_flag=True, help="Returns lorem ipsum sentence")
10-
def main(words, s):
10+
@click.option("--words", type=int, help="Returns lorem ipsum words")
11+
@click.option("--s", is_flag=True, help="Returns lorem ipsum sentence")
12+
def main(words, s):
1113
"""Console script for lorem."""
1214
if words:
1315
words = int(words)

0 commit comments

Comments
 (0)