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

STYLE/CI: implement incremental linting for asv benchmarks #18647

Merged
merged 3 commits into from
Dec 6, 2017

Conversation

jbrockmendel
Copy link
Member

Another try at #18620

@mroeschke since it looks like you are going through the asv files one-by-one, the idea here is that when file X gets cleaned up, it can be un-excluded in the lint.sh command.

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@mroeschke
Copy link
Member

👍 Sounds good to me @jbrockmendel

@gfyoung gfyoung added Benchmark Performance (ASV) benchmarks Clean labels Dec 5, 2017
@@ -15,7 +15,8 @@ def vbench_to_asv_source(bench, kinds=None):
output += tab + 'goal_time = 0.2\n\n'

if bench.setup:
indented_setup = [tab * 2 + '{}\n'.format(x) for x in bench.setup.splitlines()]
indented_setup = [tab * 2 + '{}\n'.format(x)
Copy link
Member

@gfyoung gfyoung Dec 5, 2017

Choose a reason for hiding this comment

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

Slight preference for keyword arguments for clarity vs. bare {}.

@jreback @jorisvandenbossche : were we just trying to transition to using .format OR .format with keyword?

@codecov
Copy link

codecov bot commented Dec 6, 2017

Codecov Report

Merging #18647 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18647      +/-   ##
==========================================
- Coverage   91.58%   91.57%   -0.01%     
==========================================
  Files         153      153              
  Lines       51250    51210      -40     
==========================================
- Hits        46935    46895      -40     
  Misses       4315     4315
Flag Coverage Δ
#multiple 89.43% <ø> (ø) ⬆️
#single 40.67% <ø> (-0.11%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/stats/moments.py 70.81% <0%> (-0.39%) ⬇️
pandas/util/testing.py 81.82% <0%> (-0.2%) ⬇️
pandas/core/frame.py 97.81% <0%> (-0.1%) ⬇️
pandas/core/window.py 96.31% <0%> (-0.07%) ⬇️
pandas/core/indexes/period.py 92.9% <0%> (-0.05%) ⬇️
pandas/core/indexes/base.py 96.43% <0%> (-0.02%) ⬇️
pandas/core/indexes/datetimes.py 95.68% <0%> (-0.01%) ⬇️
pandas/plotting/_compat.py 62% <0%> (ø) ⬆️
pandas/io/parquet.py 65.38% <0%> (ø) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3c04e2...91712cd. Read the comment docs.

@jorisvandenbossche
Copy link
Member

@jbrockmendel No need to clean up the vbench_to_asv.py file (it is not used anymore, it is rather there for historical reasons. We could remove it, but let's do that in another PR). So I would revert the changes of that file here.

@jorisvandenbossche jorisvandenbossche changed the title implement incremental linting for asvs, cleanup vbench_to_asv.py STYLE/CI: implement incremental linting for asv benchmarks Dec 6, 2017
@jorisvandenbossche jorisvandenbossche added this to the 0.22.0 milestone Dec 6, 2017
@jorisvandenbossche jorisvandenbossche merged commit c468436 into pandas-dev:master Dec 6, 2017
@jorisvandenbossche
Copy link
Member

Thanks!

@jbrockmendel jbrockmendel deleted the asvlint2 branch December 8, 2017 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Benchmark Performance (ASV) benchmarks Clean
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants