Skip to content

Conversation

@asottile
Copy link
Member

ah shoot, I should write a changelog entry -- maybe tomorrow

Resolves #4233

"""
from __future__ import absolute_import, division, print_function
import sys
from __future__ import absolute_import
Copy link
Member

Choose a reason for hiding this comment

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

@asottile can you change the tool so for future imports it does one line?

Copy link
Member Author

Choose a reason for hiding this comment

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

nope, not configurable intentionally

Copy link
Member

Choose a reason for hiding this comment

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

@asottile not asking for a configuration there ^^

rev: v1.3.2
hooks:
- id: reorder-python-imports
args: ['--application-directories=.:src']
Copy link
Member Author

Choose a reason for hiding this comment

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

I should probably also set --add-import 'from __future__ import absolute_import' and/or the others we want to enforce on all files

@codecov
Copy link

codecov bot commented Oct 25, 2018

Codecov Report

Merging #4235 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4235      +/-   ##
==========================================
+ Coverage   95.82%   95.87%   +0.05%     
==========================================
  Files         109      109              
  Lines       24286    24590     +304     
  Branches     2392     2392              
==========================================
+ Hits        23271    23575     +304     
  Misses        720      720              
  Partials      295      295
Flag Coverage Δ
#docs 29.06% <67.32%> (+0.55%) ⬆️
#doctesting 29.06% <67.32%> (+0.55%) ⬆️
#linting 29.06% <67.32%> (+0.55%) ⬆️
#linux 95.64% <100%> (+0.05%) ⬆️
#nobyte 92.01% <100%> (+0.09%) ⬆️
#numpy 93.01% <100%> (+0.09%) ⬆️
#pexpect 41.68% <70.84%> (+0.41%) ⬆️
#py27 94.05% <100%> (+0.07%) ⬆️
#py34 92.35% <100%> (+0.12%) ⬆️
#py35 91.7% <100%> (-0.54%) ⬇️
#py36 94% <100%> (+0.07%) ⬆️
#py37 92.37% <100%> (+0.12%) ⬆️
#trial 93.01% <100%> (+0.09%) ⬆️
#windows 94.13% <100%> (+0.06%) ⬆️
#xdist 93.89% <100%> (+0.07%) ⬆️
Impacted Files Coverage Δ
src/_pytest/reports.py 97.61% <ø> (ø) ⬆️
testing/logging/test_formatter.py 100% <ø> (ø) ⬆️
testing/test_paths.py 100% <ø> (ø) ⬆️
testing/test_nodes.py 100% <ø> (ø) ⬆️
src/_pytest/hookspec.py 100% <ø> (ø) ⬆️
src/_pytest/assertion/__init__.py 86.76% <100%> (+0.4%) ⬆️
testing/test_junitxml.py 97.9% <100%> (ø) ⬆️
testing/test_runner_xunit.py 100% <100%> (ø) ⬆️
testing/test_pdb.py 95% <100%> (+0.02%) ⬆️
src/_pytest/debugging.py 94.11% <100%> (+0.1%) ⬆️
... and 84 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 f6dfca7...2368fbb. Read the comment docs.

@nicoddemus nicoddemus merged commit ccdb248 into pytest-dev:master Oct 25, 2018
@asottile asottile deleted the reorder_python_imports branch October 25, 2018 15:21
nicoddemus added a commit that referenced this pull request Oct 25, 2018
Add a changelog for #4235 [ci skip]
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.

3 participants