Skip to content

Conversation

@amol-
Copy link
Owner

@amol- amol- commented Feb 6, 2026

No description provided.

Copy link
Contributor

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

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

@@ -0,0 +1,45 @@
[build-system]
requires = ["setuptools>=64", "wheel"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Wheel was never needed here

Suggested change
requires = ["setuptools>=64", "wheel"]
requires = ["setuptools>=64"]

"Programming Language :: Python :: 3.9",
"Programming Language :: JavaScript",
]
dependencies = ["argparse; python_version == '2.6'"]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is rather pointless given the classifiers

Suggested change
dependencies = ["argparse; python_version == '2.6'"]

"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify requires-python so that the depresolver takes it into account.



DukPy is a simple javascript interpreter for Python built on top of
duktape engine **without any external dependency**.
Copy link
Contributor

Choose a reason for hiding this comment

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

It'd be nice to leave a historic reference explaining the project name.

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider integrating https://pypi.org/p/vendoring. It's Pradyun's thing used in pip.

@@ -0,0 +1,7 @@
line-length = 88
target-version = "py39"
Copy link
Contributor

Choose a reason for hiding this comment

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

Set requires-python in pyproject.toml instead.

Suggested change
target-version = "py39"

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Use native integration, not local and you won't need to install ruff externally + run it in https://pre-commit.ci. Pro tip: with a double run, you can normalize trailing commas nicely — https://github.com/cherrypy/cheroot/blob/662cd9dcf426253536f921c618b480e65a429cb1/.pre-commit-config.yaml#L62-L87

Comment on lines +14 to +16
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
Copy link
Contributor

Choose a reason for hiding this comment

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

These versions are quite outdated.

Comment on lines +22 to +26
pip install ruff pre-commit
- name: Ruff check
run: |
ruff check .
ruff format --check .
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't install ruff, run pre-commit (although, you could also skip GHA and use the official app). Personally, I wrap linting things with tox: https://github.com/cherrypy/cheroot/blob/662cd9dcf426253536f921c618b480e65a429cb1/.github/workflows/ci-cd.yml#L606-L710

@amol-
Copy link
Owner Author

amol- commented Feb 8, 2026

I recommend separating ruff format into a dedicated commit/PR and then recording it in blame ignore

Thanks for the review @webknjaz ! I really appreciate it.
Note that this branch is just a huge mess where I'm experimenting with the migration, some files I just copy/pasted them from other projects to have it up and runny quickly. I'm committing primarily just to be able to continue the work from the different PCs I use, but it's far from being in any stable or meaningful state. I'll get it out of Draft state when it's in a more serious state 😅

@webknjaz
Copy link
Contributor

webknjaz commented Feb 8, 2026

Yeah, I figured. Just wanted to post some feedback regarding easily fixable stuff.

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