mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
add vscode settings
This commit is contained in:
parent
0ea4839fbb
commit
466c8a44d7
6 changed files with 38 additions and 5 deletions
3
.bandit
Normal file
3
.bandit
Normal file
|
@ -0,0 +1,3 @@
|
|||
[bandit]
|
||||
skips: B110,B404,B408,B410,B603,B607
|
||||
targets: .
|
|
@ -181,9 +181,9 @@ lint_format_safety_bandit_checks:
|
|||
- function set_error() { export EXITVALUE=1; printf "\x1b[31mERROR `history|tail -2|head -1|cut -b 6-500`\x1b[0m\n"; }
|
||||
- ./hooks/pre-commit || set_error
|
||||
- bandit
|
||||
-r
|
||||
-ii
|
||||
-s B110,B404,B408,B410,B603,B607
|
||||
-r $CI_PROJECT_DIR fdroid
|
||||
--ini .bandit
|
||||
|| set_error
|
||||
- safety check --full-report || set_error
|
||||
- pylint --rcfile=.pylint-rcfile --output-format=colorized --reports=n
|
||||
|
@ -213,8 +213,7 @@ lint_mypy:
|
|||
python3-pip
|
||||
python3-wheel
|
||||
- pip install -e .[test]
|
||||
# exclude vendored file
|
||||
- mypy --exclude fdroidserver/apksigcopier.py
|
||||
- mypy
|
||||
|
||||
|
||||
fedora_latest:
|
||||
|
|
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"ms-python.python",
|
||||
]
|
||||
}
|
22
.vscode/settings.json
vendored
Normal file
22
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"python.formatting.blackArgs": [
|
||||
"--config pyproject.toml"
|
||||
],
|
||||
"python.formatting.provider": "black",
|
||||
"python.linting.banditEnabled": true,
|
||||
"python.linting.banditArgs": [
|
||||
"-r",
|
||||
"-ii",
|
||||
"--ini .bandit",
|
||||
],
|
||||
"python.linting.enabled": true,
|
||||
"python.linting.mypyArgs": [
|
||||
"--config-file mypy.ini"
|
||||
],
|
||||
"python.linting.mypyEnabled": true,
|
||||
"python.linting.pycodestyleEnabled": true,
|
||||
"python.linting.pylintArgs": [
|
||||
"--rcfile=.pylint-rcfile"
|
||||
],
|
||||
"python.linting.pylintEnabled": true,
|
||||
}
|
2
mypy.ini
2
mypy.ini
|
@ -1,5 +1,7 @@
|
|||
[mypy]
|
||||
files = fdroidserver
|
||||
# exclude vendored file
|
||||
exclude = fdroidserver/apksigcopier.py
|
||||
|
||||
# this is de-facto the linter setting for this file
|
||||
warn_unused_configs = True
|
||||
|
|
2
pyproject.toml
Normal file
2
pyproject.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[tool.black]
|
||||
skip-string-normalization = true
|
Loading…
Add table
Add a link
Reference in a new issue