Ver a proveniência

Align the directories linted in CI with the defaults in scripts-dev/lint.sh (#9191)

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.
tags/v1.27.0rc1
Andrew Morgan há 3 anos
committed by GitHub
ascendente
cometimento
31c5382d7a
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
3 ficheiros alterados com 5 adições e 2 eliminações
  1. +1
    -0
      changelog.d/9191.misc
  2. +2
    -1
      scripts-dev/lint.sh
  3. +2
    -1
      tox.ini

+ 1
- 0
changelog.d/9191.misc Ver ficheiro

@@ -0,0 +1 @@
Add some missing source directories to the automatic linting script.

+ 2
- 1
scripts-dev/lint.sh Ver ficheiro

@@ -80,7 +80,8 @@ else
# then lint everything!
if [[ -z ${files+x} ]]; then
# Lint all source code files and directories
files=("synapse" "tests" "scripts-dev" "scripts" "contrib" "synctl" "setup.py" "synmark")
# Note: this list aims the mirror the one in tox.ini
files=("synapse" "docker" "tests" "scripts-dev" "scripts" "contrib" "synctl" "setup.py" "synmark" "stubs" ".buildkite")
fi
fi



+ 2
- 1
tox.ini Ver ficheiro

@@ -24,7 +24,8 @@ deps =
# install the "enum34" dependency of cryptography.
pip>=10

# directories/files we run the linters on
# directories/files we run the linters on.
# if you update this list, make sure to do the same in scripts-dev/lint.sh
lint_targets =
setup.py
synapse


Carregando…
Cancelar
Guardar