Skip to content

Add Sysdig SDK#2

Merged
S3B4SZ17 merged 13 commits into
mainfrom
add-sysdig-sdk
Jul 1, 2025
Merged

Add Sysdig SDK#2
S3B4SZ17 merged 13 commits into
mainfrom
add-sysdig-sdk

Conversation

@alecron
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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

Signed-off-by: S3B4SZ17 <sebastian.zumbado@sysdig.com>
Comment thread .github/workflows/publish.yaml Outdated
Comment thread .github/workflows/publish.yaml Outdated

- name: Run ruff
run: |
uvx ruff check --fix --config ruff.toml
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread .pre-commit-config.yaml Outdated
- id: ruff-format
name: Ruff Format
description: Format code with ruff.
entry: bash -c 'uvx ruff format --config ruff.toml'
Copy link
Copy Markdown
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

Comment thread .pre-commit-config.yaml
entry: bash -c 'uvx ruff format --config ruff.toml'
language: system
stages: ["commit", "push"]
- id: ruff-check
Copy link
Copy Markdown
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

Comment thread 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
Copy Markdown
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.

Comment thread ruff.toml
@@ -0,0 +1,287 @@
# Exclude a variety of commonly ignored directories.
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@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

Comment thread ruff.toml
@@ -0,0 +1,287 @@
# Exclude a variety of commonly ignored directories.
Copy link
Copy Markdown
Contributor

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 pushed a commit that referenced this pull request Jul 1, 2025
* Adding CI/CD pipeline
* Updating overall format and standards

Co-authored-by: S3B4SZ17 <sebastian.zumbado@sysdig.com>
Co-authored-by: Fede Barcelona <fede_rico_94@hotmail.com>
Signed-off-by: S3B4SZ17 <sebastian.zumbado@sysdig.com>
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