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

Add Linting Step/Check in Travis CI #9

Open
anirudhRowjee opened this issue Dec 12, 2020 · 11 comments
Open

Add Linting Step/Check in Travis CI #9

anirudhRowjee opened this issue Dec 12, 2020 · 11 comments
Assignees
Labels
enhancement New feature or request

Comments

@anirudhRowjee
Copy link
Owner

that's pretty much it. Check for code formatting using black, along with a linting tool that is the best choice.

@anirudhRowjee anirudhRowjee added the enhancement New feature or request label Dec 12, 2020
@roysti10
Copy link

A suggestion for this
Instead of checking black linting in Travis
You could add a pre-commit to the repo
So everytime a contributor commits then the black check is automatically fulfilled

@anirudhRowjee
Copy link
Owner Author

Yeah, this seems to be the recommended course of action. I'll look into it

@RohanJnr
Copy link

Precommit is a good method to check for lint errors but CI is also needed. I would recommend using github actions for this instead of Travis CI

@RohanJnr
Copy link

I can work on this if you can assign me :p

@anirudhRowjee
Copy link
Owner Author

@RohanJnr Sure, I'll assign you. Why Github Actions over Travis CI though? Just want to weigh the pros and cons 😄

@RohanJnr
Copy link

RohanJnr commented Dec 13, 2020

github actions is simply available on github, its one of their products so why go for a third party CI tool like travis

@anirudhRowjee
Copy link
Owner Author

while that would simply be more convenient, I'd just like to know if we're missing out on anything in terms of features by choosing github actions as opposed to Travis. I'd appreciate any more information on this :D

@RohanJnr
Copy link

there are a bunch of resources online about that and actions is mostly the choice for most application. you should be able to accomplish the same using both.
Github Actions is just convenient as you said.

@Samyak2
Copy link

Samyak2 commented Dec 14, 2020

I would suggest flake8 as a linting tool. Since you're using it with black you'll have to create a compatible configuration. (ref)

@MadhavJivrajani
Copy link

If you're going to use a 3rd party CI, I wouldn't recommend Travis, there were a lot of weird issues which popped up for us while using Travis, go with CircleCI or Jenkins

@anirudhRowjee
Copy link
Owner Author

GitHub actions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants