- Aug 12, 2021
-
-
David Robertson authored
-
- Aug 10, 2021
-
-
David Robertson authored
-
- May 14, 2021
-
-
Richard van der Hoff authored
Turns out these scripts weren't getting linted.
-
- Mar 31, 2021
-
-
Patrick Cloke authored
-
- Mar 30, 2021
-
-
Andrew Morgan authored
For it's obvious performance benefits. `dmypy` support landed in #9692.
-
- Mar 25, 2021
-
-
Quentin Gliech authored
On NixOS, `bash` isn't under `/bin/bash` but rather in some directory in `$PATH`. Locally, I've been patching those scripts to make them work. `/usr/bin/env` seems to be the only [portable way](https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my ) to use binaries from the PATH as interpreters. Signed-off-by:
Quentin Gliech <quentingliech@gmail.com>
-
- Jan 21, 2021
-
-
Andrew Morgan authored
The lists of source directories to lint between `tox.ini` and `lint.sh` became out of sync. This PR tightens them up and adds some comments reminding any future readers to keep the list in sync.
-
- Oct 29, 2020
-
-
Patrick Cloke authored
This modifies the configuration of structured logging to be usable from the standard Python logging configuration. This also separates the formatting of logs from the transport allowing JSON logs to files or standard logs to sockets.
-
- Oct 28, 2020
-
-
kleph authored
-
- Oct 15, 2020
-
-
Andrew Morgan authored
This PR makes several changes to the `./scripts-dev/lint.sh` script, which lints the codebase with a number of tools: * Adds usage information, with `-h` flag to show it. Otherwise it will show when providing an unknown flag. * Adds option `-d` which will check both staged and unstaged files that have changed since the last commit and add them to the list of files to lint. - Note that only files without an extension, or with a `.py` extension will be allowed. This prevents editing bash scripts causing the linters to break on non-python files. * Improves the print-out of which files/directories are being linted.
-
- Jul 20, 2020
-
-
Andrew Morgan authored
Run `isort`, `flake8` and `black` over the `contrib/` directory and `synctl` script. The latter was already being done in CI, but now the linting script does it too. Fixes https://github.com/matrix-org/synapse/issues/7910
-
- Jul 05, 2020
-
-
Will Hunt authored
The CI appears to use the latest version of isort, which is a problem when isort gets a major version bump. Rather than try to pin the version, I've done the necessary to make isort5 happy with synapse.
-
- Jun 25, 2020
-
-
Andrew Morgan authored
-
- Nov 01, 2019
-
-
Neil Pilgrim authored
-
- Oct 23, 2019
-
-
Andrew Morgan authored
Add a linting script that enforces all boolean values in the default config be lowercase. This has annoyed me for a while so I decided to fix it.
-
- Jul 10, 2019
-
-
Andrew Morgan authored
Add a dev script to cover all the different linting steps.
-