Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #102 from SanketDG/coala!
Browse files Browse the repository at this point in the history
Add .coafile
  • Loading branch information
aktech committed Jun 23, 2016
2 parents fc5881f + df51ada commit 0916b02
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 53 deletions.
38 changes: 38 additions & 0 deletions .coafile
@@ -0,0 +1,38 @@
[Default]
files = pydsa/**/*.py

max_line_length = 80
use_spaces = True
no_orig = yeah

[python]
# Patches may conflict with autopep8 so putting them in own section so they
# will be executed sequentially; also we need the LineLengthBear to double
# check the line length because PEP8Bear sometimes isn't able to correct the
# linelength.
bears = SpaceConsistencyBear, PyUnusedCodeBear
default_actions =
SpaceConsistencyBear: ApplyPatchAction,
PyUnusedCodeBear: ApplyPatchAction

[pylint]
enabled = False
bears = PyLintBear
pylint_disable = missing-docstring,
C0103 # simple variable names
C0411 # sorting imports


[autopep8]
bears = PEP8Bear
default_actions = PEP8Bear: ApplyPatchAction

[imports]
enabled = False
bears = PyImportSortBear
default_actions = PyImportSortBear: ShowPatchAction

[invalidlinks]
enabled = False
files = docs/source/*.rst
bears = InvalidLinkBear
26 changes: 24 additions & 2 deletions README.md
Expand Up @@ -11,6 +11,7 @@ Python Data Structure and Algorithms Library (α-mode)
1. [Installation](#installation)
2. [Usage](#usage)
3. [Development Environment](#development-environment)
* [Code Analysis](#code-analysis)
4. [Contributing](#contributing)

## Installation
Expand Down Expand Up @@ -50,16 +51,37 @@ The source code is managed with the Git version control system. To get the lates
$ git clone https://github.com/pydsa/pydsa.git
```

You should then install the dependency for running the tests:
You should then install the development requirements:

* [pytest](http://pytest.org/latest/getting-started.html#getstarted)
```
pip install -r requirements.txt
```

To run tests:

```
$ py.test
```

### Code Analysis

[`coala`](https://github.com/coala-analyzer/coala) is used to lint and format
code.

To analyze code using `coala`:

```
$ coala
```

There also other checks that you can run with coala:

```
$ coala pylint # checks the whole codebase against pylint.
$ coala invalidlinks # checks docs for invalid links.
$ coala imports # sort imports
```

## Contributing

There are multiple ways you can contibute to Pydsa
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
coala-bears==0.2.1
py.test
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -8,5 +8,5 @@
license='BSD',
packages=['pydsa'],
zip_safe=False,
install_requires=['autopep8'],
install_requires=[],
)
50 changes: 0 additions & 50 deletions white_space.py

This file was deleted.

0 comments on commit 0916b02

Please sign in to comment.