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

[TCE-912] Integrating ruff in a codacy-ruff #59

Open
valeriupredoi opened this issue Apr 8, 2024 · 10 comments
Open

[TCE-912] Integrating ruff in a codacy-ruff #59

valeriupredoi opened this issue Apr 8, 2024 · 10 comments
Labels
jira-issue Issue tracked on JIRA

Comments

@valeriupredoi
Copy link

Hi folks - @lolgab we meet again, my friend - at a different Codacy repo 😁 - I was suggesting to the Ruff guys to see if they can get their linter integrated with Codacy, see astral-sh/ruff#10458 - would this be something you guys would be OK with, and if so, are there any pointers on how to do this, apart from using this package here? Cheerios 🍺

@github-actions github-actions bot changed the title Integrating ruff in a codacy-ruff [TCE-912] Integrating ruff in a codacy-ruff Apr 8, 2024
@github-actions github-actions bot added the jira-issue Issue tracked on JIRA label Apr 8, 2024
Copy link

github-actions bot commented Apr 8, 2024

Internal ticket created : TCE-912

@mrfyda
Copy link
Contributor

mrfyda commented Jul 5, 2024

hi @valeriupredoi, thanks for reaching out.

this is something we'd very much be interested in! 👀

the documentation in this repo is the best place to start, but I can share that we usually follow this recipe:

  1. create a wrapper for the tool and have its docker published following Codacy’s expected inputs and outputs
  2. create a script to extract the documentation from the official tool and generate the tool documentation
  3. write integration tests (as described in the multiple section of the test-runner repo) for the most common cases: running the tool without any configuration, running the tool with a configuration file, running the tool with configuration from the Codacy UI

keep in mind that in addition to Scala, we also have seeds for Typescript and Golang. you can use the one that is most convenient to you.

feel free to ping us in this thread if you need assistance.

@valeriupredoi
Copy link
Author

hi @mrfyda - many thanks, mate! I'll have a looksee at your pointers soon, cheers 🍺

@valeriupredoi
Copy link
Author

Back onto this, folks - I trust everyone had good summer breaks! I have started with asking Ruff folks about codac-ruff (so that we are all clear about who does what, so there are no conflicts/issues) astral-sh/ruff#13391 Am gonna wait to see what they say before I start moving earth 😁 🍺

@valeriupredoi
Copy link
Author

Hi @mrfyda and the Codacy folks, got a few things to report and ask, please:

  • as per Integration of Ruff in Codacy astral-sh/ruff#13391 and what the Ruff folks told me ie it'd be good if I went ahead and start working on a codacy-ruff app myself, I built such an app https://github.com/valeriupredoi/codacy-ruff
  • that is built resembling closely the Prospector one https://github.com/codacy/codacy-prospector and it runs fine, and the Docker container builds well, and it runs fine (calls ruff check with JSON output, though I am not 100% sure the patternID has correct values)
  • my app is currently lacking a few key items:
    • it's got no doc dir with autobuilt docs - those should be Ruff docs, unfortunately we only started using Ruff recently, and don't have the expertise to build Ruff docs
    • Circle tests: it's got one basic test module to unit test the functionality, but not any Circle tests

What is the best approach to get this wee app sandbox tested, then deployed with you guys? I can link up with the Ruff folks in the above mentioned issue and ask them to produce documentation for it, I should guess. Many thanks in advance 🍺

@heliocodacy
Copy link

Hello @valeriupredoi 👋

Thanks a lok. Our tools team will take a look and queue this to our roadmap.

Amazing work, btw!

@valeriupredoi
Copy link
Author

wonderful, very many thanks @heliocodacy 🍺 Shall wait for your team, and we'll take it from there 👍

@valeriupredoi
Copy link
Author

valeriupredoi commented Oct 31, 2024

hi @heliocodacy you folks managed to find some time to look at my tool, by any chance? Cheers muchly 🍺

@heliocodacy
Copy link

Hello @valeriupredoi 👋

We've started, yes, and it's on our roadmap to implement (ideally this quarter).

Cheers!

@valeriupredoi
Copy link
Author

jolly! excellent news, many thanks @heliocodacy 🍺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira-issue Issue tracked on JIRA
Projects
None yet
Development

No branches or pull requests

3 participants