MatrixSynapse/scripts-dev
Andrew Morgan 654e239b25
Add option to scripts-dev/lint.sh to only lint files changed since the last git commit (#8472)
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.
2020-10-15 15:45:13 +01:00
..
build_debian_packages Add Ubuntu 20.10 (Groovy Gorilla) to build scripts. (#8475) 2020-10-07 08:48:54 -04:00
check-newsfragment Spruce up the check-newsfragment CI output (#8024) 2020-08-04 22:10:23 +01:00
check_line_terminators.sh Fix exit code for `check_line_terminators.sh` (#7970) 2020-07-28 08:52:25 -04:00
check_signature.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
complement.sh Add support for running Complement against the local checkout (#8317) 2020-09-29 13:47:47 +01:00
config-lint.sh
convert_server_keys.py
database-save.sh
definitions.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
dump_macaroon.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
federation_client.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
generate_sample_config
hash_history.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
lint.sh Add option to scripts-dev/lint.sh to only lint files changed since the last git commit (#8472) 2020-10-15 15:45:13 +01:00
list_url_patterns.py
make_full_schema.sh
mypy_synapse_plugin.py Fix typing for `@cached` wrapped functions (#8240) 2020-09-03 15:38:32 +01:00
next_github_number.sh
tail-synapse.py
update_database Rename database classes to make some sense (#8033) 2020-08-05 21:38:57 +01:00