Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
adding tons of functionality and new rules, version bump, applying ar…
Browse files Browse the repository at this point in the history
…chives to archives.py itself!
  • Loading branch information
jpetrucciani committed Sep 9, 2019
1 parent e6d7dc7 commit d56f97f
Show file tree
Hide file tree
Showing 8 changed files with 481 additions and 84 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name = "pypi"
[packages]
click = ">=7.0"
typed-ast = ">=1.4.0"
radon = ">=3.0.3"

[dev-packages]
tox = "*"
Expand Down
79 changes: 78 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 26 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ archives: a new way to do python code documentation


.. image:: https://i.kym-cdn.com/entries/icons/original/000/023/967/obiwan.jpg
:width: 50 %
:width: 100 %
:alt: Perhaps the archives are incomplete

Features
--------

- (coming soon) linter for docstrings
- linter for docstrings (work in progress, but usable)
- (coming soon) documentation generator

Usage
Expand All @@ -41,7 +41,28 @@ Installation

.. code-block:: bash
pip install archives
pip install archives
Run the Linter
^^^^^^^^^^^^^^
.. code-block:: bash
# run archives (on itself!)
archives archives.py
#> archives.py:846:0: F104 function 'path_empty' missing @ret tag
#>
#> Impossible! Perhaps your archives are incomplete?
#> 1 issues found.
# list rules!
archives --list-rules
# disable rules!
archives --disable M100 .
# different formats for output! defaults to flake8
archives --format pylint archives.py
Testing
Expand All @@ -63,5 +84,7 @@ Todo
- more rules
- better system for multi-check rules
- more output formats
- potentially spell-checking inside desc?
- documentation generator
- tests
- ignore @ret if None return type
Loading

0 comments on commit d56f97f

Please sign in to comment.