mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
config black exceptions in pyproject.toml
This means that anyone can run `black .` and it won't break things. Plus it gives us a roadmap for fully enabling black.
This commit is contained in:
parent
32ea4ef19a
commit
6dcdadd0e3
2 changed files with 40 additions and 39 deletions
|
@ -254,45 +254,7 @@ black:
|
||||||
<<: *apt-template
|
<<: *apt-template
|
||||||
script:
|
script:
|
||||||
- apt-get install black
|
- apt-get install black
|
||||||
- black --check --diff --color
|
- black --check --diff --color $CI_PROJECT_DIR
|
||||||
examples/fdroid_clean_repos.py
|
|
||||||
examples/fdroid_extract_repo_pubkey.py
|
|
||||||
fdroid
|
|
||||||
fdroidserver/btlog.py
|
|
||||||
fdroidserver/exception.py
|
|
||||||
fdroidserver/gpgsign.py
|
|
||||||
fdroidserver/init.py
|
|
||||||
fdroidserver/lint.py
|
|
||||||
fdroidserver/mirror.py
|
|
||||||
fdroidserver/net.py
|
|
||||||
fdroidserver/readmeta.py
|
|
||||||
fdroidserver/rewritemeta.py
|
|
||||||
fdroidserver/signatures.py
|
|
||||||
fdroidserver/signindex.py
|
|
||||||
fdroidserver/tail.py
|
|
||||||
fdroidserver/verify.py
|
|
||||||
setup.py
|
|
||||||
tests/api.TestCase
|
|
||||||
tests/build.TestCase
|
|
||||||
tests/deploy.TestCase
|
|
||||||
tests/dump_internal_metadata_format.py
|
|
||||||
tests/exception.TestCase
|
|
||||||
tests/gpgsign.TestCase
|
|
||||||
tests/import_subcommand.TestCase
|
|
||||||
tests/index.TestCase
|
|
||||||
tests/init.TestCase
|
|
||||||
tests/install.TestCase
|
|
||||||
tests/key-tricks.py
|
|
||||||
tests/lint.TestCase
|
|
||||||
tests/main.TestCase
|
|
||||||
tests/metadata.TestCase
|
|
||||||
tests/net.TestCase
|
|
||||||
tests/nightly.TestCase
|
|
||||||
tests/rewritemeta.TestCase
|
|
||||||
tests/scanner.TestCase
|
|
||||||
tests/signindex.TestCase
|
|
||||||
tests/vcs.TestCase
|
|
||||||
tests/verify.TestCase
|
|
||||||
|
|
||||||
fedora_latest:
|
fedora_latest:
|
||||||
image: fedora:latest
|
image: fedora:latest
|
||||||
|
|
|
@ -1,6 +1,45 @@
|
||||||
[tool.black]
|
[tool.black]
|
||||||
skip-string-normalization = true
|
skip-string-normalization = true
|
||||||
target-version = ["py38"]
|
target-version = ["py38"]
|
||||||
|
include = '(^fdroid|\.pyi?|\.TestCase)$'
|
||||||
|
# These files will never be included in black runs. To run black on
|
||||||
|
# one of thes files, remove it from this list.
|
||||||
|
force-exclude = '''(
|
||||||
|
\.direnv|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.svn|\.tox|\.venv|venv|_build|buck-out|build|dist|__pypackages__
|
||||||
|
| docs/source/conf\.py
|
||||||
|
| examples/fdroid_export_keystore_to_nitrokey\.py
|
||||||
|
| examples/fdroid_exportkeystore\.py
|
||||||
|
| examples/fdroid_fetchsrclibs\.py
|
||||||
|
| examples/fdroid_nitrokeyimport\.py
|
||||||
|
| fdroidserver/__init__\.py
|
||||||
|
| fdroidserver/__main__\.py
|
||||||
|
| fdroidserver/apksigcopier\.py
|
||||||
|
| fdroidserver/build\.py
|
||||||
|
| fdroidserver/checkupdates\.py
|
||||||
|
| fdroidserver/common\.py
|
||||||
|
| fdroidserver/deploy\.py
|
||||||
|
| fdroidserver/import_subcommand\.py
|
||||||
|
| fdroidserver/index\.py
|
||||||
|
| fdroidserver/install\.py
|
||||||
|
| fdroidserver/metadata\.py
|
||||||
|
| fdroidserver/nightly\.py
|
||||||
|
| fdroidserver/publish\.py
|
||||||
|
| fdroidserver/scanner\.py
|
||||||
|
| fdroidserver/update\.py
|
||||||
|
| fdroidserver/vmtools\.py
|
||||||
|
| locale/pick-complete-translations\.py
|
||||||
|
| tests/config\.py
|
||||||
|
| tests/extra/manual-vmtools-test\.py
|
||||||
|
| tests/gradle-release-checksums\.py
|
||||||
|
| tests/openssl-version-check-test\.py
|
||||||
|
| tests/testcommon\.py
|
||||||
|
| tests/valid-package-names/test\.py
|
||||||
|
| tests/checkupdates\.TestCase
|
||||||
|
| tests/common\.TestCase
|
||||||
|
| tests/publish\.TestCase
|
||||||
|
| tests/signatures\.TestCase
|
||||||
|
| tests/update\.TestCase
|
||||||
|
)$'''
|
||||||
|
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue