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

DM-16343: Limit number of flake8 jobs #4

Merged
merged 1 commit into from Oct 30, 2018
Merged

DM-16343: Limit number of flake8 jobs #4

merged 1 commit into from Oct 30, 2018

Conversation

timj
Copy link
Member

@timj timj commented Oct 29, 2018

No description provided.

@timj
Copy link
Member Author

timj commented Oct 29, 2018

I have submitted this patch upstream as tholo/pytest-flake8#55

if statistics:
args += ['--statistics']
+ # One file per flake8 call so limit flake8 to one job
+ args += ['--jobs', "0"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0, not 1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both work and both turn off multiprocessing. Looking at the code 0 is used for number of jobs when the number of jobs can't be determined. I can go either way on this since the effect is the same.

Without this change flake8 uses "auto" meaning that each flake8
test for each file launches many subprocesses.
@timj timj merged commit 39ba427 into master Oct 30, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants