Skip to content

Conversation

alecron
Copy link
Collaborator

@alecron alecron commented Jun 30, 2025

No description provided.

@alecron alecron marked this pull request as ready for review June 30, 2025 15:14
@S3B4SZ17 S3B4SZ17 force-pushed the add-sysdig-sdk branch 2 times, most recently from 304c06e to 7c11d2e Compare June 30, 2025 22:58
S3B4SZ17
S3B4SZ17 previously approved these changes Jun 30, 2025
Copy link
Collaborator

@S3B4SZ17 S3B4SZ17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


- name: Run ruff
run: |
uvx ruff check --fix --config ruff.toml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's extract all those targets into a makefile so it's easier to maintain and execute locally.

  • make lint
  • make test
    ...

run: |
uv run pytest --cov=. --cov-report=xml

- name: Extract version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's split this into a different job that depends on the previous. This way we can execute the previous one locally with act.

- id: ruff-format
name: Ruff Format
description: Format code with ruff.
entry: bash -c 'uvx ruff format --config ruff.toml'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In here we could use the previous mentioned make fmt

entry: bash -c 'uvx ruff format --config ruff.toml'
language: system
stages: ["commit", "push"]
- id: ruff-check
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here make lint

CODEOWNERS Outdated
# the repo. Unless a later match takes precedence,
# @S3B4SZ17 @alecron and @sysdiglabs/sysdig-training will be requested for
# review when someone opens a pull request.
* @S3B4SZ17 @alecron @sysdiglabs/sysdig-training
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to specify the single contributors and just leave the team. It's easier to maintain if there are movements in the org.

@@ -0,0 +1,287 @@
# Exclude a variety of commonly ignored directories.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IDK if this is required. Let's check without it, because it eases the maintenance.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here just following the official doc and excluding the common packages https://docs.astral.sh/ruff/configuration/ I got the list of lints to use from other big OSS projects so I think since the file has a good amount of lines leave it on its own.

mateobur
mateobur previously approved these changes Jul 1, 2025
Copy link
Collaborator

@S3B4SZ17 S3B4SZ17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -0,0 +1,287 @@
# Exclude a variety of commonly ignored directories.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here just following the official doc and excluding the common packages https://docs.astral.sh/ruff/configuration/ I got the list of lints to use from other big OSS projects so I think since the file has a good amount of lines leave it on its own.

@S3B4SZ17 S3B4SZ17 merged commit ae08b12 into main Jul 1, 2025
1 check passed
@S3B4SZ17 S3B4SZ17 deleted the add-sysdig-sdk branch July 1, 2025 16:09
S3B4SZ17 added a commit that referenced this pull request Jul 1, 2025
* Adding CI/CD pipeline
* Updating overall format and standards

Co-authored-by: S3B4SZ17 <[email protected]>
Co-authored-by: Fede Barcelona <[email protected]>
Signed-off-by: S3B4SZ17 <[email protected]>
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

Successfully merging this pull request may close these issues.

4 participants