Skip to content

Commit

Permalink
Add flake8 to developer requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobGM committed Apr 8, 2018
1 parent 8e2fa69 commit 87de731
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions astrality/tests/test_astrality.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def test_interrupt_of_main_process():
astrality_process.wait()
assert astrality_process.returncode == 0


@pytest.mark.slow
def test_invocation_of_main_process():
main(test=True)
3 changes: 3 additions & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ sphinx_rtd_theme

# For watching filesystem changes
watchdog

# For linting python files
flake8
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ chardet==3.0.4 # via requests
click==6.7 # via pip-tools
docutils==0.14 # via sphinx
first==2.0.1 # via pip-tools
flake8==3.5.0
freezegun==0.3.9 # via pytest-freezegun
idna==2.6 # via requests
imagesize==0.7.1 # via sphinx
jinja2==2.10
livereload==2.5.1 # via sphinx-autobuild
markupsafe==1.0 # via jinja2
mccabe==0.6.1 # via flake8
mypy-extensions==0.3.0
mypy==0.560
packaging==16.8 # via sphinx
Expand All @@ -29,6 +31,8 @@ pluggy==0.6.0 # via pytest
port-for==0.3.1 # via sphinx-autobuild
psutil==5.4.3 # via mypy
py==1.5.2 # via pytest
pycodestyle==2.3.1 # via flake8
pyflakes==1.6.0 # via flake8
pygments==2.2.0 # via sphinx
pyparsing==2.2.0 # via packaging
pytest-env==0.6.2
Expand Down
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[yapf]
split_before_first_argument = False
split_before_named_assigns = False
dedent_closing_brackets = True

[pycodestyle]
ignore = E704

[flake8]
max-line-length = 80
exclude = astrality/tests/*, docs/*

0 comments on commit 87de731

Please sign in to comment.