semvec/pypi-packages huggingface dataset:
py_static_check 1.2
Statically check your Python code
License: MIT

py_static_check
---------------

py_static_check can statically check your Python code for a lot of common errors.
It uses a modified pyflakes code and extends with following things:

 * Ability to specify what star imports resolve to (-s argument)
 * Ability to ignore unused import warnings (-i argument)
 * Better sorting of warnings/errors

For more information check out:

 * http://amix.dk/blog/post/19665#py-static-check-Statically-check-your-Python-code
 * http://amix.dk/blog/post/19361#Static-checking-Python-code

To install it do following:

    sudo easy_install py_static_check


Here are some of the things py_static_check can do.


Catch undefined names, even for star imports
--------------------------------------------

Example code::

    from os import *

    def function_with_error():
        print path
        print paths

star_imports.py::

    import os
    STAR_IMPORTS = {
        'os': os.__all__,
    }

When ran with py_static_check::

    $ py_static_check -s tests/star_import.py tests/undefined_name_star.py
    tests/undefined_name.py:5: undefined name 'paths


Ignore not used warnings
------------------------

Exampel code::

    from os import path

When ran with py_static_check -i option::

    $ py_static_check -i tests/ignore_not_used.py

    $ py_static_check tests/ignore_not_used.py
    tests/ignore_not_used.py:10: 'path' imported but unused


Assigned but never used
-----------------------

Like pyflakes it can catch a lot of errors, such as defining a variable without using it.

Exampel code::

    def some_function():
        def inner_fn():
            local_var = ""

When ran with py_static_check::

    $ py_static_check tests/assigned_but_never_used.py

    tests/assigned_but_never_used.py:8: local variable 'local_var' is assigned to but never used

Copyright: 2011 by amix
License: MIT.
trac2rst 0.2.1
Quick an dirty tool to transform text in Trac Wiki formatting to Restructured Text
License: MIT
Keywords: restructuredtext,rst,converter

trac2rst
========

I use ``trac2rst`` to help me in the task to pass documentacion
from `trac`_ to `sphinx`_ (`reStructuredText`_). I usally copy the trac wiki page to a temporaly file, run
the script, copy the output to the new rest file and do manual changes.

Features
--------

The idea is use this tool to do the more tedious work (I mean transforming
lists, links and inliners).
You *must* review and fix the result later.


It only processes:
 * Headers (sections at 4 levels)
 * Lists (bullets and numbered)
 * Trac links.
 * A subject of trac and rest inliners

It does **NOT support** (a lot):
 * Trac macros
 * Trac processors
 * Links between wiki pages
 * Rest definition lists, etc
 * Preformatting
 * Images
 * Tables
 * Footnotes
 * Anchors
 * Citations
 * Comments
 * A lot more ...

Usage example
-------------

Type trac2rst --help

You can view a simple wiki transfomation (used for manual test)::

  $ bin/trac2rst -i src/trac2rst/tests/wikitext.txt -u https://trac.yaco.es/project/  -o /tmp/test.rst && rst2html /tmp/test.rst /tmp/test.html && firefox /tmp/test.html


Disclaimer
----------
This is a *quick and dirty tool*. It does not use reST or wiki processor. The
work is done using regular expressions.

License
-------

``trac2rst``  is offered under the `MIT license
<http://www.opensource.org/licenses/mit-license.php>`_.

Authors
-------

``trac2rst`` is made available by `Yaco Sistemas
<http://www.yaco.es>`_


Credits
-------

- `Distribute`_
- `Buildout`_
- `modern-package-template`_
- `zest.releaser`_

.. _Buildout: http://www.buildout.org/
.. _Distribute: http://pypi.python.org/pypi/distribute
.. _`modern-package-template`: http://pypi.python.org/pypi/modern-package-template
.. _zest.releaser: http://pypi.python.org/pypi/zest.releaser
.. _trac: http://trac.edgewall.org/
.. _sphinx: http://sphinx.pocoo.org/
.. _reStructuredText: http://docutils.sourceforge.net/rst.html


.. This is your project HISTORY file which will contain the release notes.
.. Example: http://pypi.python.org/pypi/zest.releaser/3.28#id73
.. The content of this file, along with README.rst, will appear in your
.. project's PyPI page.

Changelog
=========


0.2.1 (2011-12-19)
------------------

- fix error in project url


0.2 (2011-12-19)
----------------

- pep8 compliant
- Global variables removed
- Set a TODO comment por preformated text

0.1 (2011-12-19)
----------------

- First Release