pre-commit run --all-files, workaround nginx

This commit is contained in:
Aminda Suomalainen 2024-06-06 20:19:30 +03:00
parent 6a58feed11
commit 29dc1af193
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
9 changed files with 36 additions and 22 deletions

View File

@ -22,6 +22,11 @@ max_line_length = 78
# Opinionated affecting only display, better to not set
#tab_width =
# https://github.com/jxddk/prettier-plugin-nginx/issues/8
[*.nginx]
insert_final_newline = unset
indent_style = unset
# *nix, just in case
[*.{bash,sh}]
# .gitattributes !

View File

@ -33,6 +33,7 @@ repos:
# types to add.
exclude_types: [svg, tsv]
- id: end-of-file-fixer
exclude: ^etc\/nginx\/.*$
- id: check-yaml
- id: check-added-large-files
# These are not from `pre-commit sample-config`

View File

@ -77,14 +77,22 @@ lb_strategy = 'p2'
[sources]
[sources.'public-resolvers']
#url = 'https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md'
urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/public-resolvers.md', 'https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md', 'https://cdn.staticaly.com/gh/DNSCrypt/dnscrypt-resolvers/master/v2/public-resolvers.md', 'https://evilvibes.com/list/public-resolvers.md']
urls = [
'https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/public-resolvers.md',
'https://download.dnscrypt.info/resolvers-list/v2/public-resolvers.md',
'https://cdn.staticaly.com/gh/DNSCrypt/dnscrypt-resolvers/master/v2/public-resolvers.md',
'https://evilvibes.com/list/public-resolvers.md',
]
cache_file = '/var/cache/dnscrypt-proxy/public-resolvers.md'
minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
refresh_delay = 72
prefix = 'public-'
[sources.'opennic']
urls = ['https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/opennic.md', 'https://download.dnscrypt.info/resolvers-list/v2/opennic.md']
urls = [
'https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v2/opennic.md',
'https://download.dnscrypt.info/resolvers-list/v2/opennic.md',
]
minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3'
refresh_delay = 72
cache_file = '/var/cache/dnscrypt-proxy/opennic.md'