Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom style for flake8? #7

Open
nalourie-ai2 opened this issue Mar 1, 2017 · 3 comments
Open

Custom style for flake8? #7

nalourie-ai2 opened this issue Mar 1, 2017 · 3 comments
Assignees

Comments

@nalourie-ai2
Copy link
Contributor

  • alexafsm version: 0.1.0
  • Python version: 3.6.0
  • Operating System: El Capitan

Description

Running flake8 on the master branch I get a lot of style errors, which seems like a lot of noise. It makes me guess that maybe there are different settings that you're using with flake8 to develop, and I'm wondering what those settings are / if contributers should use them when submitting pull requests.

What I Did

> flake8 alexafsm tests
alexafsm/policy.py:32:80: E501 line too long (95 > 79 characters)
alexafsm/policy.py:49:80: E501 line too long (84 > 79 characters)
alexafsm/policy.py:59:80: E501 line too long (90 > 79 characters)
alexafsm/policy.py:85:80: E501 line too long (81 > 79 characters)
alexafsm/policy.py:94:80: E501 line too long (83 > 79 characters)
alexafsm/policy.py:125:80: E501 line too long (81 > 79 characters)
alexafsm/policy.py:127:80: E501 line too long (104 > 79 characters)
alexafsm/policy.py:134:80: E501 line too long (87 > 79 characters)
alexafsm/policy.py:138:80: E501 line too long (95 > 79 characters)
alexafsm/policy.py:142:80: E501 line too long (84 > 79 characters)
alexafsm/response.py:10:80: E501 line too long (98 > 79 characters)
alexafsm/response.py:15:80: E501 line too long (92 > 79 characters)
alexafsm/response.py:21:80: E501 line too long (93 > 79 characters)
alexafsm/session_attributes.py:6:80: E501 line too long (86 > 79 characters)
alexafsm/session_attributes.py:19:80: E501 line too long (83 > 79 characters)
alexafsm/session_attributes.py:39:80: E501 line too long (85 > 79 characters)
alexafsm/session_attributes.py:41:80: E501 line too long (83 > 79 characters)
alexafsm/session_attributes.py:51:80: E501 line too long (93 > 79 characters)
alexafsm/session_attributes.py:80:80: E501 line too long (87 > 79 characters)
alexafsm/session_attributes.py:90:80: E501 line too long (81 > 79 characters)
alexafsm/session_attributes.py:93:80: E501 line too long (87 > 79 characters)
alexafsm/session_attributes.py:96:80: E501 line too long (87 > 79 characters)
alexafsm/states.py:20:80: E501 line too long (91 > 79 characters)
alexafsm/states.py:24:80: E501 line too long (88 > 79 characters)
alexafsm/states.py:37:80: E501 line too long (98 > 79 characters)
alexafsm/states.py:60:80: E501 line too long (92 > 79 characters)
alexafsm/states.py:64:80: E501 line too long (83 > 79 characters)
alexafsm/utils.py:24:80: E501 line too long (96 > 79 characters)
alexafsm/utils.py:53:80: E501 line too long (80 > 79 characters)
alexafsm/utils.py:62:80: E501 line too long (85 > 79 characters)
tests/test_session_attributes.py:3:80: E501 line too long (94 > 79 characters)
tests/skillsearch/policy.py:11:80: E501 line too long (88 > 79 characters)
tests/skillsearch/policy.py:35:80: E501 line too long (87 > 79 characters)
tests/skillsearch/policy.py:36:80: E501 line too long (81 > 79 characters)
tests/skillsearch/policy.py:37:80: E501 line too long (90 > 79 characters)
tests/skillsearch/policy.py:46:80: E501 line too long (83 > 79 characters)
tests/skillsearch/server.py:31:80: E501 line too long (84 > 79 characters)
tests/skillsearch/server.py:59:80: E501 line too long (80 > 79 characters)
tests/skillsearch/skill.py:5:80: E501 line too long (87 > 79 characters)
tests/skillsearch/states.py:23:80: E501 line too long (81 > 79 characters)
tests/skillsearch/states.py:82:80: E501 line too long (81 > 79 characters)
tests/skillsearch/states.py:85:80: E501 line too long (81 > 79 characters)
tests/skillsearch/states.py:88:80: E501 line too long (95 > 79 characters)
tests/skillsearch/states.py:148:80: E501 line too long (94 > 79 characters)
tests/skillsearch/states.py:149:80: E501 line too long (92 > 79 characters)
tests/skillsearch/states.py:155:80: E501 line too long (89 > 79 characters)
@vha14
Copy link
Contributor

vha14 commented Mar 1, 2017

Flake8 should be run from tox.

pip install tox (in system Python, not in virtualenv)

Then:

tox

@nalourie-ai2
Copy link
Contributor Author

That makes sense. Perhaps its worth removing the instructions about running flake8 and the test suite manually from the contributing instructions, as python devs unfamiliar with tox might become confused by it.

@vha14
Copy link
Contributor

vha14 commented Mar 1, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants