Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Commit

Permalink
Fix lint, re-run docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Jul 14, 2017
1 parent bd9de35 commit f9fb4b0
Show file tree
Hide file tree
Showing 38 changed files with 5,130 additions and 4,966 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -5,3 +5,4 @@
/build
/python_jwt.egg-info
/python
/package-lock.json
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,7 @@ sudo: false
language: python
python:
- 2.7
- 3.4
- 3.6
node_js:
- 8
before_install:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -13,7 +13,7 @@ build_docs:
pandoc -t rst README.md | sed -e '1,1s/^[^\\]*//' -e '2d' > README.rst

lint:
pylint python_jwt test bench
pylint --ignore=unitbench.py python_jwt test bench

test: run_test

Expand Down
2 changes: 1 addition & 1 deletion bench/generate_key_bench.py
Expand Up @@ -4,7 +4,7 @@

# pylint: disable=wrong-import-position,wrong-import-order
import Crypto.PublicKey.RSA as RSA
from unitbench import Benchmark
from bench.unitbench import Benchmark
from bench.reporter import Reporter

class GenerateKeyBenchmark(Benchmark):
Expand Down
2 changes: 1 addition & 1 deletion bench/generate_token_bench.py
Expand Up @@ -4,7 +4,7 @@

# pylint: disable=wrong-import-position,wrong-import-order
from datetime import timedelta
from unitbench import Benchmark
from bench.unitbench import Benchmark
from test.fixtures import payload, priv_keys, priv_key, algs
from bench.reporter import Reporter
import python_jwt as jwt
Expand Down
2 changes: 1 addition & 1 deletion bench/load_key_bench.py
Expand Up @@ -4,7 +4,7 @@

# pylint: disable=wrong-import-position,wrong-import-order
import Crypto.PublicKey.RSA as RSA
from unitbench import Benchmark
from bench.unitbench import Benchmark
from test.fixtures import priv_pem
from bench.reporter import Reporter

Expand Down
4 changes: 2 additions & 2 deletions bench/reporter.py
Expand Up @@ -2,13 +2,13 @@

import sys
import argparse
import unitbench
import bench.unitbench

parser = argparse.ArgumentParser()
parser.add_argument('--gfm', dest='gfm', action='store_true')
gfm = parser.parse_args().gfm

class Reporter(unitbench.Reporter):
class Reporter(bench.unitbench.Reporter):
""" Custom reporter """

def __init__(self, output_stream=sys.stdout):
Expand Down
2 changes: 1 addition & 1 deletion bench/verify_token_bench.py
Expand Up @@ -4,7 +4,7 @@

# pylint: disable=wrong-import-position,wrong-import-order
from datetime import timedelta
from unitbench import Benchmark
from bench.unitbench import Benchmark
from test.fixtures import payload, priv_keys, priv_key, pub_keys, pub_key, algs
from bench.reporter import Reporter
import python_jwt as jwt
Expand Down
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/_build/html/.buildinfo
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 95655ce32edbf9658fc782b2f01ad909
config: c2d30d0033efa56e6d8529134582838d
tags: 645f666f9bcd5a90fca523b33c5a78b7
77 changes: 55 additions & 22 deletions docs/_build/html/_static/basic.css
Expand Up @@ -52,6 +52,8 @@ div.sphinxsidebar {
width: 230px;
margin-left: -100%;
font-size: 90%;
word-wrap: break-word;
overflow-wrap : break-word;
}

div.sphinxsidebar ul {
Expand Down Expand Up @@ -83,10 +85,6 @@ div.sphinxsidebar #searchbox input[type="text"] {
width: 170px;
}

div.sphinxsidebar #searchbox input[type="submit"] {
width: 30px;
}

img {
border: 0;
max-width: 100%;
Expand Down Expand Up @@ -124,6 +122,8 @@ ul.keywordmatches li.goodmatch a {

table.contentstable {
width: 90%;
margin-left: auto;
margin-right: auto;
}

table.contentstable p.biglink {
Expand Down Expand Up @@ -151,9 +151,14 @@ table.indextable td {
vertical-align: top;
}

table.indextable dl, table.indextable dd {
table.indextable ul {
margin-top: 0;
margin-bottom: 0;
list-style-type: none;
}

table.indextable > tbody > tr > td > ul {
padding-left: 0em;
}

table.indextable tr.pcap {
Expand Down Expand Up @@ -185,8 +190,22 @@ div.genindex-jumpbox {
padding: 0.4em;
}

/* -- domain module index --------------------------------------------------- */

table.modindextable td {
padding: 2px;
border-collapse: collapse;
}

/* -- general body styles --------------------------------------------------- */

div.body p, div.body dd, div.body li, div.body blockquote {
-moz-hyphens: auto;
-ms-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}

a.headerlink {
visibility: hidden;
}
Expand All @@ -212,10 +231,6 @@ div.body td {
text-align: left;
}

.field-list ul {
padding-left: 1em;
}

.first {
margin-top: 0 !important;
}
Expand Down Expand Up @@ -332,10 +347,6 @@ table.docutils td, table.docutils th {
border-bottom: 1px solid #aaa;
}

table.field-list td, table.field-list th {
border: 0 !important;
}

table.footnote td, table.footnote th {
border: 0 !important;
}
Expand Down Expand Up @@ -372,6 +383,20 @@ div.figure p.caption span.caption-number {
div.figure p.caption span.caption-text {
}

/* -- field list styles ----------------------------------------------------- */

table.field-list td, table.field-list th {
border: 0 !important;
}

.field-list ul {
margin: 0;
padding-left: 1em;
}

.field-list p {
margin: 0;
}

/* -- other body styles ----------------------------------------------------- */

Expand Down Expand Up @@ -422,15 +447,6 @@ dl.glossary dt {
font-size: 1.1em;
}

.field-list ul {
margin: 0;
padding-left: 1em;
}

.field-list p {
margin: 0;
}

.optional {
font-size: 1.3em;
}
Expand Down Expand Up @@ -489,6 +505,13 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}

span.pre {
-moz-hyphens: none;
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
}

td.linenos pre {
padding: 5px 0px;
border: 0;
Expand Down Expand Up @@ -580,6 +603,16 @@ span.eqno {
float: right;
}

span.eqno a.headerlink {
position: relative;
left: 0px;
z-index: 1;
}

div.math:hover a.headerlink {
visibility: visible;
}

/* -- printout stylesheet --------------------------------------------------- */

@media print {
Expand Down
Binary file modified docs/_build/html/_static/comment-bright.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_static/comment-close.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_static/comment.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 25 additions & 1 deletion docs/_build/html/_static/doctools.js
Expand Up @@ -124,6 +124,7 @@ var Documentation = {
this.fixFirefoxAnchorBug();
this.highlightSearchWords();
this.initIndexTable();

},

/**
Expand Down Expand Up @@ -252,6 +253,29 @@ var Documentation = {
});
var url = parts.join('/');
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
},

initOnKeyListeners: function() {
$(document).keyup(function(event) {
var activeElementType = document.activeElement.tagName;
// don't navigate when in search box or textarea
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') {
switch (event.keyCode) {
case 37: // left
var prevHref = $('link[rel="prev"]').prop('href');
if (prevHref) {
window.location.href = prevHref;
return false;
}
case 39: // right
var nextHref = $('link[rel="next"]').prop('href');
if (nextHref) {
window.location.href = nextHref;
return false;
}
}
}
});
}
};

Expand All @@ -260,4 +284,4 @@ _ = Documentation.gettext;

$(document).ready(function() {
Documentation.init();
});
});
Binary file modified docs/_build/html/_static/down-pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_static/down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_build/html/_static/file.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f9fb4b0

Please sign in to comment.