Skip to content

Conversation

@bladernr
Copy link
Collaborator

@bladernr bladernr commented Feb 3, 2026

Description

TSIA - discovered while working on #880 that there are a few files that fail the ruff check, so I did a quick reformat using ruff. Also updated .gitignore to not track copilot agent instructions, VIM swap files, and local build artifact folder.

Resolved issues

Resolves CERTTF-823

Documentation

NA

Web service API changes

NA

Tests

Unit tests checked

…pdate .gitignore to not track personal copilot agent data, local build folders, and vim swap files
@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.69%. Comparing base (4e085f9) to head (5306b13).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #900   +/-   ##
=======================================
  Coverage   72.69%   72.69%           
=======================================
  Files         108      108           
  Lines       10069    10069           
  Branches      880      880           
=======================================
  Hits         7320     7320           
  Misses       2568     2568           
  Partials      181      181           
Flag Coverage Δ *Carryforward flag
agent 73.10% <ø> (ø)
cli 89.55% <ø> (ø) Carriedforward from 4e085f9
device 56.75% <ø> (ø) Carriedforward from 4e085f9
server 87.99% <ø> (ø) Carriedforward from 4e085f9

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
Agent 73.10% <ø> (ø)
CLI 89.55% <ø> (ø)
Common ∅ <ø> (∅)
Device Connectors 56.75% <ø> (ø)
Server 87.99% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bladernr bladernr requested a review from pedro-avalos February 3, 2026 15:47
*.snap
*.swp

.github/copilot-instructions.md
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the recommendation is to not gitignore it, so it is consistent between different developer environments/clones. However, we can ignore it until we decide on a standard copilot-instructions.md

@rene-oromtz @ajzobro do you agree?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, agree on ignoring for now. If we were to include a standard, maybe we should define a AGENTS.md soon

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, especially with all the agentic PRs or even to help with some of the chores that devs might do with an agent locally

Copy link
Collaborator

Choose a reason for hiding this comment

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

This should not be formatted. It is a vendored library from a charm (grafana_agent). We should not be editing it.

If Ruff is giving errors or warnings, it should be ignored in a pyproject.toml or ruff.toml configuration.

Copy link
Contributor

Choose a reason for hiding this comment

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

I also notice that while playing with just. I think it was not properly set as ignore unless you run it in a specific way... I'll open a PR to address this, it was drafted on my personal computer

Copy link
Collaborator

Choose a reason for hiding this comment

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

Honestly, I'm not sure how I feel about formatting the docs/ directory with Ruff. This is what we get from the Canonical Sphinx starter pack. I would think we shouldn't format it too much to make sure we can compare it with the template when there are updates, for example.

@tang-mm what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

The starter pack doesn’t include specific formatting rules, so it’s really up to the individual project. I'd lean toward extending the project-level rules to docs/ scripts to keep further local changes consistent (e.g. conf.py currently has a mixed usage of single- and double-quotes 😅 )

make sure we can compare it with the template when there are updates

If we need to compare against the upstream template later, we can just run a quick ruff format on the template first to get a clean diff

@bladernr
Copy link
Collaborator Author

bladernr commented Feb 3, 2026

Honestly feel free to axe this too, it was a pretty quick attempt at just cleaning up things that looked like potential problems later (since we are linting with Ruff formatting now and that blocked my earlier PRs on the maas2 connector). So I'm perfectly happy to reject this and deal with it all later 😸

@bladernr
Copy link
Collaborator Author

bladernr commented Feb 3, 2026

Or, if you'd prefer, I can drop the format changes and just PR the .gitignore update? Then you all and @tang-mm can decide on whether or not to use ruff on the docs directory or not...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants