typo 死ぬほど多いので突っ込みまってます
- バージョン
0.2.3
- 作者
@voluntas
考え方はコロコロ変わるタイプなのですが、最近はレビューが実はとても大事でとにもかくにもレビューなのでは?と思い始めてきています。
import pytest | |
import shelldoctest | |
# use this if you run only shelldoctest | |
#def pytest_addoption(parser): | |
# parser.addoption("--shelldoctest", action="store_true", | |
# help="run shell-doctest") | |
# | |
#def pytest_runtest_setup(item): | |
# if not isinstance(item, item.Function): |
# Thomas Parslow http://almostobsolete.net | |
# Just a work in progress and adapted to what I need right now. | |
# It does uploads (via a file-like object that you write to) and | |
# I've started on downloads. Needs the development version of Boto from Github. | |
# | |
# Example: | |
# | |
# glacierconn = GlacierConnection(AWS_ACCESS_KEY, AWS_SECRET_ACCESS_KEY) | |
# writer = GlacierWriter(glacierconn, GLACIER_VAULT) | |
# writer.write(somedata) |
#!/opt/python-3.3.0rc1/bin/python3.3 | |
import venv | |
import sys | |
import argparse | |
import subprocess | |
import os | |
here = os.path.dirname(__file__) |
# put it into your conf.py | |
def setup(app): | |
# disable versioning for speed | |
from sphinx.builders.gettext import I18nBuilder | |
I18nBuilder.versioning_method = 'none' | |
def doctree_read(app, doctree): | |
if not isinstance(app.builder, I18nBuilder): | |
return | |
from docutils import nodes |
#!/usr/bin/env python | |
""" Process URL for intersphinx targets and emit html or text """ | |
def validuri(string): | |
return string | |
from sphinx.ext.intersphinx import read_inventory_v2 | |
from posixpath import join | |
import pprint | |
import argparse |
import random | |
participants = ["ymotongpoo", | |
"shiumachi", | |
"mopemope", | |
"tk0miya", | |
"shimizukawa", | |
"kuenishi", | |
"ransui", | |
"turky", |
rst2textileのend_stateの仕様について質問→自己解決 | |
元々のコード | |
def visit_literal_block(self, node): | |
self.new_state(0) | |
def depart_literal_block(self, node): | |
self.end_state(wrap=False, first="<pre>\n", end=['</pre>']) | |
出力されるもの | |
<pre> |
import sqlalchemy as sa | |
import sqlalchemy.orm as orm | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy.ext.declarative import declared_attr | |
from sqlalchemy.orm import scoped_session, sessionmaker | |
DBSession = scoped_session(sessionmaker()) | |
class BaseMixin(object): | |
query = DBSession.query_property() | |
id = sa.Column(sa.Integer, primary_key=True) |
sys.path.insert(0, 'lib/') | |
extensions += ['sphinxcontrib_phpautodoc'] |