Skip to content

Fix Ruff linting errors: UP009 and FA100 - #89

Draft
niklassiemer with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-ruff-problems
Draft

Fix Ruff linting errors: UP009 and FA100#89
niklassiemer with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-ruff-problems

Conversation

Copilot AI commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Ruff CI was failing due to an unnecessary UTF-8 encoding declaration and missing from __future__ import annotations imports needed to simplify Optional usage.

Changes

  • docs/conf.py: Remove # -*- coding: utf-8 -*- header (UP009)
  • sphinx_parser/ase.py: Add from __future__ import annotations (FA100)
  • sphinx_parser/input.py: Add from __future__ import annotations (FA100)

Summary

Fixes Ruff errors UP009 (unnecessary UTF-8 coding comment) and FA100 (missing future annotations import) across three files.

Related Issue(s)

N/A

Backward Compatibility

No breaking changes. from __future__ import annotations makes annotation evaluation lazy but does not affect runtime behavior for these files.

Detailed Description

All changes are mechanical fixes flagged by Ruff. The from __future__ import annotations import is added to files using Optional[...] type hints, satisfying the FA100 rule without requiring changes to the type annotation syntax itself.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch pyiron/sphinx_parser/copilot/fix-ruff-problems

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.

2 participants