Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt project skeleton #1

Open
wants to merge 77 commits into
base: main
Choose a base branch
from
Open

Adopt project skeleton #1

wants to merge 77 commits into from

Conversation

jaraco
Copy link
Member

@jaraco jaraco commented Dec 15, 2024

jaraco and others added 30 commits July 4, 2023 11:53
The TOX_TESTENV_PASSENV hasn't been useful for some time and by its mere presence wasted a lot of time today under the assumption that it's doing something. Instead, just rely on one variable FORCE_COLOR. If it's not honored, then that should be the fix upstream.
Also, upgrade from `pypy3.9` to `pypy3.10` and remove the `continue-on-error` for Python 3.12.

As recommended at jaraco/cssutils#41
Code reuse

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
This allows org-hosted projects to start enabling merge queues in the
repository settings. With that, GitHub would trigger a separate event
against a merge commit derived from merging several pull requests with
the target branch.
* Use the ruff formatter, instead of black

Based on:
- ruff-pre-commit README.md | Using Ruff with pre-commit
  https://github.com/astral-sh/ruff-pre-commit/blob/main/README.md
- The Ruff Formatter | Conflicting lint rules
  https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

Support for the ruff formatter was added to pytest-ruff by commits from
October 2023, released the same day as versions 0.2 and 0.2.1. Hence, it
makes sense to require pytest-ruff ≥ 0.2.1 now.

Support for `quote-style = "preserve"` was added to ruff in the last
couple of weeks, therefore require the latest version, ruff ≥ 0.1.8.
This option is equivalent to `skip-string-normalization` in black.

Closes jaraco/skeleton#101.

---------

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Applies Repo-Review suggestion:
	RF201: Avoid using deprecated config settings
	extend-ignore deprecated, use ignore instead (identical)
…nd their presence blocks the names of packages like 'builder' and 'distutils'. Ref pypa/distutils#224.
* Tweak coverage configuration for type checking

* Use `exclude_also` instead of `exclude_lines`

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>

* Add reference to the issue.

---------

Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
jaraco and others added 30 commits June 21, 2024 13:09
* "preserve" does not require preview any more
* Update URL in ruff.toml comment

---------

Co-authored-by: Bartosz Sławecki <bartoszpiotrslawecki@gmail.com>
…araco/skeleton#135)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Based on changes downstream in setuptools.
…fixes (jaraco/skeleton#140)

* Add `--fix`  flag to ruff pre-commit hook for automatic suggestion of fixes.

This is documented in https://github.com/astral-sh/ruff-pre-commit?tab=readme-ov-file#using-ruff-with-pre-commit and should be safe to apply, because it requires the developer to "manually approve" the suggested changes via `git add`.

* Add --unsafe-fixes to ruff pre-commit hoot
…l' comment to delineate where the skeleton ends and the downstream begins.
…using Ruff/isort.

Remove extra line after imports in conf.py (jaraco/skeleton#147)
For compatibility with skeleton.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment