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

Set isort settings to be consistent with black #773

Merged
merged 3 commits into from
Mar 24, 2020

Conversation

namurphy
Copy link
Member

The default settings for isort (which sorts imports) and black (which strictly formats code) are not consistent with each other. This sets the default settings for isort to be consistent with black. If you run black and isort once, then switching between them afterward will lead to no changes.

The default settings for isort (which sorts imports) and black (which
strictly formats code) are not consistent with each other.  This sets
the default settings for isort to be consistent with black.  If you
run black and isort once, then switching between them afterward will
lead to no changes.
@codecov
Copy link

codecov bot commented Mar 24, 2020

Codecov Report

Merging #773 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #773   +/-   ##
=======================================
  Coverage   96.23%   96.23%           
=======================================
  Files          55       55           
  Lines        4971     4971           
=======================================
  Hits         4784     4784           
  Misses        187      187

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 10287a3...b6fbac6. Read the comment docs.

setup.cfg Show resolved Hide resolved
This is for consistency with the default line length for the black
code formatter.
@namurphy namurphy merged commit 8e7cda7 into PlasmaPy:master Mar 24, 2020
StanczakDominik added a commit to StanczakDominik/PlasmaPy that referenced this pull request Apr 22, 2020
PlasmaPy#773 added settings for isort, but didn't actually add isort to the suite.
StanczakDominik added a commit that referenced this pull request Apr 24, 2020
* Remove sunpy image-test tox-env

* Allow plot display from tests using PLASMAPY_PLOT_TESTS=1

* Add pip to environment.yml

conda nags you about not having pip as a dependency when including
pip dependencies such as numpydoc and pytest here.

* Add isort to pre-commit hooks

#773 added settings for isort, but didn't actually add isort to the suite.

* Set tox envlist to minimal set

This allows simply running `tox` to run the main package tests via py37
and the documentation, instead of taking in some cases half an hour to
run all the env combinations.

* Cleanup tox deps
@namurphy namurphy deleted the isort-settings branch August 14, 2021 13:03
@namurphy namurphy added the linters Code linters and autoformatters label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linters Code linters and autoformatters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants