Skip to content

Updated python and sphinx-needs#77

Open
PhilipPartsch wants to merge 6 commits intoavengineers:developfrom
useblocks:develop
Open

Updated python and sphinx-needs#77
PhilipPartsch wants to merge 6 commits intoavengineers:developfrom
useblocks:develop

Conversation

@PhilipPartsch
Copy link

We updated python and sphinx-needs.
We do had to fix linter and ruff warnings, too.

Copy link
Member

@xxthunder xxthunder left a comment

Choose a reason for hiding this comment

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

Thank you very much for this contribution. Only minor findings to be solved before merge. 🦆

from pathlib import Path
from subprocess import CalledProcessError
from typing import Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union
from typing import Any
Copy link
Member

Choose a reason for hiding this comment

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

Why is this required? typing classes are bad?

#### Quick Start
```bash
# Using Makefile
make setup # Install dependencies and setup hooks
Copy link
Member

Choose a reason for hiding this comment

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

No GNU Make please. We banned this from all our projects.



def run_process(args: List[str], cwd: Optional[str] = None) -> int:
def run_process(args: list[str], cwd: str | None = None) -> int:
Copy link
Member

Choose a reason for hiding this comment

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

Same here? Python 3.13 does not like that anymore?

# Set the version of Python and other tools you might need
build:
os: ubuntu-20.04
os: ubuntu-22.04
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for updating this. 24.04 is not available yet?

files: |
out/test-report.xml

test-on-linux:
Copy link
Member

Choose a reason for hiding this comment

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

When you propose to use build.sh on linux (what I really like and support), then please update this workflow to use and test it.

cd hammocking

# Make build script executable
chmod +x build.sh
Copy link
Member

Choose a reason for hiding this comment

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

Please remove this and update build.sh to be executable.

Hint: git update-index --chmod=+x build.sh

@@ -0,0 +1,161 @@
.PHONY: help install clean build test lint docs run all
Copy link
Member

Choose a reason for hiding this comment

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

No way we allow a Makefile in here. ;-)

@xxthunder
Copy link
Member

I enabled the workflow, please have a look there, too.

@xxthunder
Copy link
Member

@PhilipPartsch And conflicts, oh boy. Sorry for that.

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.

3 participants