Skip to content

Commit 3ce772d

Browse files
Merge branch 'develop'
2 parents ec3daff + 5cbfb4c commit 3ce772d

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.tox/
12
/build/
23
/dist/
34
/MANIFEST

sifter/tests/size.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(
4949
}
5050
)
5151
self.validate_tests_size(0)
52-
self.comparison_fn = TestSize.COMPARISON_FNS[tagged_args['size'][0]] # type: ignore
52+
self.comparison_fn = self.COMPARISON_FNS[tagged_args['size'][0]] # type: ignore
5353
self.comparison_size = tagged_args['size'][1]
5454

5555
def evaluate(self, message: Message, state: EvaluationState) -> Optional[bool]:

tox.ini

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# tox (https://tox.readthedocs.io/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
6+
[tox]
7+
envlist = py27
8+
9+
[testenv]
10+
deps = flake8
11+
12+
commands =
13+
# stop the build if there are Python syntax errors or undefined names
14+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
15+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
16+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
17+
18+
python -m unittest discover -v
19+
20+
[flake8]
21+
exclude =
22+
# this is the default list of excludes
23+
.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,
24+
# auto-generated files
25+
parsetab.py

0 commit comments

Comments
 (0)