Skip to content

Commit

Permalink
Merge pull request #331 from elautz/flake8-config-fix
Browse files Browse the repository at this point in the history
Build configuration again extends from flake8 configuration
  • Loading branch information
zvezdan authored Dec 5, 2019
2 parents 963cc18 + 7c0bc39 commit d91c72c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,16 @@ private static void createConfigurations(Project project) {

project.getConfigurations().create(CONFIGURATION_BOOTSTRAP_REQS.getValue());
project.getConfigurations().create(CONFIGURATION_SETUP_REQS.getValue());
project.getConfigurations().create(CONFIGURATION_BUILD_REQS.getValue());
Configuration buildReq = project.getConfigurations().create(CONFIGURATION_BUILD_REQS.getValue());
project.getConfigurations().create(CONFIGURATION_PYDOCS.getValue());
project.getConfigurations().create(CONFIGURATION_TEST.getValue());
project.getConfigurations().create(CONFIGURATION_VENV.getValue());
project.getConfigurations().create(CONFIGURATION_WHEEL.getValue());
// TODO: Kept for compatibility. Remove when not needed (very soon).
project.getConfigurations().create("flake8");
// TODO: Kept for backwards compatibility. Remove when not needed (very soon).
// Even though flake8 is no longer in its own virtual env, users may still be adding libraries through the
// flake8 configuration, which still needs to be added to the build config so those libraries exist in the venv.
Configuration flake8 = project.getConfigurations().create("flake8");
buildReq.extendsFrom(flake8);
}

/*
Expand Down

0 comments on commit d91c72c

Please sign in to comment.