Andrew Ferrazzutti
|
fcac7e0282
|
Write union types as X | Y where possible (#19111)
aka PEP 604, added in Python 3.10
|
2025-11-06 14:02:33 -06:00 |
|
Andrew Ferrazzutti
|
fc244bb592
|
Use type hinting generics in standard collections (#19046)
aka PEP 585, added in Python 3.9
- https://peps.python.org/pep-0585/
- https://docs.astral.sh/ruff/rules/non-pep585-annotation/
|
2025-10-22 16:48:19 -05:00 |
|
dependabot[bot]
|
9bb2eac719
|
Bump black from 22.12.0 to 23.1.0 (#15103)
|
2023-02-22 15:29:09 -05:00 |
|
Erik Johnston
|
b50c008453
|
Re-enable some linting (#14821)
* Re-enable some linting
* Newsfile
* Remove comment
|
2023-01-12 10:52:07 +00:00 |
|
Patrick Cloke
|
7010a3d015
|
Switch to ruff instead of flake8. (#14633)
ruff is a flake8-compatible Python linter written in Rust.
It supports the flake8 plugins that we use and is significantly
faster in testing.
|
2022-12-21 13:05:21 -05:00 |
|
David Robertson
|
8bac3e0435
|
disallow-untyped-defs in docker and stubs directories (#12528)
|
2022-04-25 12:32:35 +00:00 |
|
Eric Eastwood
|
0a00b7ff14
|
Update black, and run auto formatting over the codebase (#9381)
- Update black version to the latest
- Run black auto formatting over the codebase
- Run autoformatting according to [`docs/code_style.md
`](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md)
- Update `code_style.md` docs around installing black to use the correct version
|
2021-02-16 22:32:34 +00:00 |
|
Richard van der Hoff
|
8075504a60
|
Enable mypy for synapse.util.caches (#8547)
This seemed to entail dragging in a type stub for SortedList.
|
2020-10-15 11:44:39 +01:00 |
|