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 CI to validate code style #54

Open
pombredanne opened this issue Feb 15, 2022 · 2 comments
Open

Add CI to validate code style #54

pombredanne opened this issue Feb 15, 2022 · 2 comments

Comments

@pombredanne
Copy link
Member

And also run black on all the code including etc

keshav-space added a commit to keshav-space/univers that referenced this issue Feb 15, 2022
- codestyle test for `etc`, will be handled by `skeleton`
- see: aboutcode-org/skeleton#54

Signed-off-by: keshav-space <[email protected]>
@keshav-space
Copy link
Member

So @pombredanne we need to have black in setup.cfg
https://github.com/nexB/skeleton/blob/4004ebe15cd83b152acc124808231e63f91fbf10/setup.cfg#L38-L41
And a test_skeleton_codestyle.py under tests/
Is that good enough?

@pombredanne
Copy link
Member Author

@keshav-space

we need to have black in setup.cfg

Yes!

And a test_skeleton_codestyle.py under tests/ Is that good enough?

The skeleton being a template, we have to think a minute about the tests... They will be merged in repos using the skeleton... and at the same we want them to run on the skeleton proper.
Therefore test_skeleton_codestyle.py or some other name must be designed to be unique across all projects.
This looks like a good conspicuous and unique name, so go for it!
👍

keshav-space added a commit to keshav-space/skeleton that referenced this issue Feb 22, 2022
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

No branches or pull requests

2 participants