Skip to content

Refactor pixi tasks#6

Merged
AndrewSazonov merged 4 commits into
developfrom
config
Feb 4, 2026
Merged

Refactor pixi tasks#6
AndrewSazonov merged 4 commits into
developfrom
config

Conversation

@AndrewSazonov
Copy link
Copy Markdown
Member

No description provided.

@AndrewSazonov AndrewSazonov requested a review from Copilot February 4, 2026 21:35
@AndrewSazonov AndrewSazonov added the [scope] bug Bug report or fix (major.minor.PATCH) label Feb 4, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request refactors the pixi task definitions in pixi.toml to improve organization and maintainability. The main changes include:

Changes:

  • Extracted complex inline Python commands into a dedicated script (tools/nonpy_prettier_modified.py) for handling non-Python file formatting checks
  • Reorganized pixi.toml tasks with visual comment separators and cleaner task definitions
  • Updated pre-commit hooks to pass filenames directly to underlying tools instead of using wrapper tasks
  • Updated copier template version reference

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
tools/nonpy_prettier_modified.py New script that replaces inline Python commands for checking modified non-Python files with prettier
pixi.toml Refactored task definitions with added section markers, simplified commands, and new pre-commit-specific tasks
.pre-commit-config.yaml Updated hooks to use new pre-commit-specific tasks and enable filename passing for relevant hooks
.copier-answers.yml Updated template version reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tools/nonpy_prettier_modified.py Outdated
Comment thread pixi.toml Outdated

##################
# 🧪 Testing Tasks
###################
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The closing comment marker has an extra '#' character compared to the opening marker. The opening marker has 18 '#' characters while the closing has 19. For consistency, both should have the same number of characters.

Suggested change
###################
##################

Copilot uses AI. Check for mistakes.
Comment thread .pre-commit-config.yaml
entry: pixi run docs-format-check-pre
language: system
pass_filenames: false
pass_filenames: true
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The pixi-docs-format-check hook should include a files filter to only run on Python files, similar to the py-lint-check and py-format-check hooks. Since docformatter is a Python docstring formatter, it should only run on .py files. Add 'files: .py$' to this hook configuration.

Suggested change
pass_filenames: true
pass_filenames: true
files: \.py$

Copilot uses AI. Check for mistakes.
Comment thread pixi.toml
dist-build = 'python -m build --wheel --outdir dist'

npm-config = 'npm config set registry https://registry.npmjs.org/'
prettier-install = 'npm install --no-save --no-audit --no-fund prettier prettier-plugin-toml'
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The prettier-install task installs external npm packages prettier and prettier-plugin-toml in CI without any version pinning or integrity verification, creating a supply-chain risk. If either package or the npm registry is compromised, malicious code could execute in your GitHub Actions job with access to GITHUB_TOKEN and repository contents. Consider pinning these dependencies to specific versions (or using a lockfile or vendored tooling) and enabling integrity checks so that only trusted, immutable artifacts are used in CI.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 4, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Copy link
Copy Markdown

Copilot AI commented Feb 4, 2026

@AndrewSazonov I've opened a new pull request, #7, to work on those changes. Once the pull request is ready, I'll request review from you.

@AndrewSazonov AndrewSazonov merged commit 5afff24 into develop Feb 4, 2026
1 check passed
@AndrewSazonov AndrewSazonov deleted the config branch February 4, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[scope] bug Bug report or fix (major.minor.PATCH)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants