scikit-optimize icon indicating copy to clipboard operation
scikit-optimize copied to clipboard

Move CI to GitHub Actions

Open kernc opened this issue 4 years ago • 3 comments

Fixes https://github.com/scikit-optimize/scikit-optimize/issues/1060 Closes https://github.com/scikit-optimize/scikit-optimize/pull/1072 Closes https://github.com/scikit-optimize/scikit-optimize/issues/1068 Closes https://github.com/scikit-optimize/scikit-optimize/pull/1069 Fixes https://github.com/scikit-optimize/scikit-optimize/issues/1073

This took a while, but it's often better late than never. :sweat_smile:

The PR looks huge, but it's namely about:

  • migrating the whole of CI onto GitHub Actions (purging TravisCI and CircleCI machinery so we don't have dead code lying around),
  • improving setup.py to aid in releasing (specifying dependencies in one single place, version control by version control etc.),
  • cleaning the code to conform to (hereby finally active!) linting,
  • some documentation consolidation and improvements (README.rst, CONTRIBUTING.md, ISSUE_TEMPLATE.md ...) to help new users.

I tried my best to simplify, yet continue @holgern's work—what happened, man, have you died?! :D

It's not too pretty, and it's opinionated in some places, but it's what I can offer and am willing to maintain. The commits have been roughly squashed by function. The PR is at this point certainly ready for review. You can see all the checks passing on a PR to my fork, here.

kernc avatar Oct 04 '21 18:10 kernc

Hello @kernc! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 155:80: E501 line too long (88 > 79 characters) Line 247:80: E501 line too long (85 > 79 characters) Line 249:80: E501 line too long (96 > 79 characters) Line 286:80: E501 line too long (87 > 79 characters) Line 287:80: E501 line too long (86 > 79 characters)

Line 52:1: E305 expected 2 blank lines after class or function definition, found 1 Line 52:80: E501 line too long (99 > 79 characters)

Line 22:1: E402 module level import not at top of file

Line 113:1: E402 module level import not at top of file

Line 51:1: E402 module level import not at top of file

Line 13:80: E501 line too long (83 > 79 characters)

Line 40:80: E501 line too long (81 > 79 characters)

Comment last updated at 2021-10-11 20:15:31 UTC

pep8speaks avatar Oct 04 '21 18:10 pep8speaks

@pep8speaks in https://github.com/OrkoHunter/pep8speaks/issues/95 says it should follow setup.cfg flake8 configuration, but apparently not the case?

I'd kindly motion toggling off the noise in favor of a more simple lint check. :+1:

kernc avatar Oct 04 '21 19:10 kernc

Should scikit-optimize leverage this PR to move to the black code-style, like scikit-learn did ?

QuentinSoubeyran avatar Oct 05 '21 17:10 QuentinSoubeyran