diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 1d8ad1833..348412b12 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -6,7 +6,7 @@ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, +identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cce126fcb..cd9cf25c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,12 +4,12 @@ ci: repos: - repo: https://github.com/psf/black - rev: 24.3.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.5 + rev: v0.4.7 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -21,7 +21,7 @@ repos: args: [tests] - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: [--exclude-file=tests/test_mypy.yml] diff --git a/CHANGELOG.md b/CHANGELOG.md index 237a36ec6..3dee3acac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#chan + ## [23.2.0](https://github.com/python-attrs/attrs/tree/23.2.0) - 2023-12-31 ### Changes @@ -42,6 +43,7 @@ See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#chan It is, for example, now possible to attach methods. [#1203](https://github.com/python-attrs/attrs/issues/1203) + ## [23.1.0](https://github.com/python-attrs/attrs/tree/23.1.0) - 2023-04-16 ### Backwards-incompatible Changes diff --git a/README.md b/README.md index d22340332..c3a837262 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ Especially those generously supporting us at the *The Organization* tier and hig

+

diff --git a/changelog.d/towncrier_template.md.jinja b/changelog.d/towncrier_template.md.jinja index d9ae7c10e..d07a85984 100644 --- a/changelog.d/towncrier_template.md.jinja +++ b/changelog.d/towncrier_template.md.jinja @@ -25,4 +25,5 @@ No significant changes. {% endif %} + {% endfor %} diff --git a/docs/_static/sponsors/Klaviyo.svg b/docs/_static/sponsors/Klaviyo.svg new file mode 100644 index 000000000..6c7449bc7 --- /dev/null +++ b/docs/_static/sponsors/Klaviyo.svg @@ -0,0 +1 @@ + diff --git a/docs/conf.py b/docs/conf.py index c00d9a204..7ddfd1e87 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -97,7 +97,7 @@ "sidebar_hide_name": True, "light_logo": "attrs_logo.svg", "dark_logo": "attrs_logo_white.svg", - "top_of_page_button": None, + "top_of_page_buttons": [], "light_css_variables": { "font-stack": "Inter,sans-serif", "font-stack--monospace": "BerkeleyMono, MonoLisa, ui-monospace, " diff --git a/docs/init.md b/docs/init.md index 90e194ef2..4e3141f3e 100644 --- a/docs/init.md +++ b/docs/init.md @@ -262,7 +262,7 @@ C(x=128) >>> C("128") Traceback (most recent call last): ... -TypeError: ("'x' must be (got '128' that is a ).", Attribute(name='x', default=NOTHING, validator=[>, ], repr=True, cmp=True, hash=True, init=True, metadata=mappingproxy({}), type=None, converter=one), , '128') +TypeError: ("'x' must be (got '128' that is a ).", Attribute(name='x', default=NOTHING, validator=[>, ], repr=True, cmp=True, hash=True, init=True, metadata=mappingproxy({}), type=None, converter=None), , '128') >>> C(256) Traceback (most recent call last): ... diff --git a/pyproject.toml b/pyproject.toml index c7ec20704..80962a931 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,10 +31,10 @@ dynamic = ["version", "readme"] [project.optional-dependencies] tests-mypy = [ - 'pytest-mypy-plugins; platform_python_implementation == "CPython" and python_version >= "3.8"', + 'pytest-mypy-plugins; platform_python_implementation == "CPython" and python_version >= "3.8" and python_version < "3.13"', # Since the mypy error messages keep changing, we have to keep updating this # pin. - 'mypy>=1.6; platform_python_implementation == "CPython" and python_version >= "3.8"', + 'mypy>=1.6,<1.10; platform_python_implementation == "CPython" and python_version >= "3.8"', ] tests = [ # For regression test to ensure cloudpickle compat doesn't break. diff --git a/tox.ini b/tox.ini index fa1d43af1..e2b549dae 100644 --- a/tox.ini +++ b/tox.ini @@ -92,7 +92,7 @@ commands = towncrier build --version main --draft [testenv:pyright] extras = tests -deps = pyright +deps = pyright<1.1.359 commands = pytest tests/test_pyright.py -vv