Skip to content

Commit

Permalink
Merge branch 'main' into fix-bn-in-coordinator-username
Browse files Browse the repository at this point in the history
  • Loading branch information
zware authored Mar 3, 2025
2 parents d5e0646 + 2b6056c commit 8f69f2d
Show file tree
Hide file tree
Showing 119 changed files with 3,104 additions and 3,734 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ indent_size = 4
[*.rst]
indent_size = 3

[*.yml]
[*.{css,yml}]
indent_size = 2
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

4 changes: 2 additions & 2 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Code of Conduct
Please note that all interactions on
[Python Software Foundation](https://www.python.org/psf-landing/)-supported
infrastructure is [covered](https://www.python.org/psf/records/board/minutes/2014-01-06/#management-of-the-psfs-web-properties)
by the [PSF Code of Conduct](https://www.python.org/psf/conduct/),
by the [PSF Code of Conduct](https://policies.python.org/python.org/code-of-conduct/),
which includes all infrastructure used in the development of Python itself
(e.g. mailing lists, issue trackers, GitHub, etc.).
(for example, mailing lists, issue trackers, GitHub, etc.).

In general this means everyone is expected to be open, considerate, and
respectful of others no matter what their position is within the project.
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ our workflow that are not covered by a bot or status check are:

## Setting Expectations

Due to the fact that this project is entirely volunteer-run (i.e. no one is paid
Due to the fact that this project is entirely volunteer-run (that is, no one is paid
to work on Python full-time), we unfortunately can make no guarantees as to if
or when a core developer will get around to reviewing your pull request.
If no core developer has done a review or responded to changes made because of a
"changes requested" review, please feel free to email [python-dev](https://mail.python.org/mailman3/lists/python-dev.python.org/) to ask if
someone could take a look at your pull request.
"changes requested" review, please consider seeking assistance through the
[Core Development Discourse category](https://discuss.python.org/c/core-dev/23).


## Code of Conduct

All interactions for this project are covered by the
[PSF Code of Conduct](https://www.python.org/psf/conduct/). Everyone is
[PSF Code of Conduct](https://policies.python.org/python.org/code-of-conduct/). Everyone is
expected to be open, considerate, and respectful of others no matter their
position within the project.
25 changes: 0 additions & 25 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Bug report"
description: Create a report to help us improve the Python devguide
title: "Bug: <title>"
labels: ["bug"]
assignees: []

body:
- type: markdown
attributes:
value: |
> [!NOTE]
> This repo is for the [Python developer's guide](https://devguide.python.org/).
> If you are reporting a bug for the Python language or
> CPython interpreter, then use the
> [CPython issue tracker](https://github.com/python/cpython/issues) instead.
- type: textarea
id: bug_description
attributes:
label: "Describe the bug"
description: A clear and concise description of what the bug is and, optionally, what you expected to happen.
validations:
required: true

- type: textarea
id: screenshots
attributes:
label: "Screenshots"
description: If applicable, add screenshots to help explain your problem.
validations:
required: false

- type: textarea
id: additional_context
attributes:
label: "Additional context"
description: Add any other context about the problem here.
validations:
required: false
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: CPython Documentation
url: https://docs.python.org/
about: Official CPython documentation - please check here before opening an issue.
- name: Python Website
url: https://python.org/
about: For all things Python
- name: PyPI Issues / Support
url: https://github.com/pypi/support
about: For issues with PyPI itself, PyPI accounts, or with packages hosted on PyPI.
- name: CPython Issues
url: https://github.com/python/cpython/issues
about: For issues with the CPython interpreter itself.
22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Feature request"
description: Suggest an idea for the Python devguide
title: "Feature: <title>"
labels: ["enhancement"]
assignees: []

body:
- type: markdown
attributes:
value: |
> [!NOTE]
> This repo is for the [Python developer's guide](https://devguide.python.org/).
> If you are requesting an enhancement for the Python language or
> CPython interpreter, then use the
> [CPython issue tracker](https://github.com/python/cpython/issues) instead.
- type: textarea
id: feature_description
attributes:
label: "Describe the enhancement or feature you would like"
description: A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: "Describe alternatives you have considered"
description: A clear and concise description of any alternative solutions or features you have considered.
validations:
required: false

- type: textarea
id: additional_context
attributes:
label: "Additional context"
description: Add any other context or screenshots about the feature request here.
validations:
required: false
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3"
cache: pip
- name: Install uv
uses: hynek/setup-cached-uv@v2
- name: Build docs
run: make html
- name: Link check
Expand Down
38 changes: 9 additions & 29 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py38-plus]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
- id: black
args: [--skip-string-normalization]

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile=black]

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
[flake8-2020, flake8-implicit-str-concat]

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
name: Run Ruff (lint)
args: [--exit-non-zero-on-fix]
- id: ruff-format
name: Run Ruff (format)
args: [--check]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand Down
3 changes: 3 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@ build:
python: "3"

commands:
- asdf plugin add uv
- asdf install uv latest
- asdf global uv latest
- make dirhtml BUILDDIR=_readthedocs
- mv _readthedocs/dirhtml _readthedocs/html
35 changes: 35 additions & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
target-version = "py310"
fix = true
output-format = "full"
line-length = 88

[lint]
preview = true
select = [
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"E", # pycodestyle
"F", # pyflakes
"FA", # flake8-future-annotations
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"PERF", # perflint
"PGH", # pygrep-hooks
"PT", # flake8-pytest-style
"TCH", # flake8-type-checking
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"E501", # Ignore line length errors (we use auto-formatting)
]

[format]
preview = true
quote-style = "preserve"
docstring-code-format = true
Loading

0 comments on commit 8f69f2d

Please sign in to comment.