add trunk, vscode-settings

This commit is contained in:
WorldTeacher
2024-01-25 14:56:54 +01:00
parent 56129c34a5
commit dd9ee24a8f
10 changed files with 150 additions and 0 deletions

10
.trunk/configs/.flake8 Normal file
View File

@@ -0,0 +1,10 @@
# Autoformatter friendly flake8 config (all formatting rules disabled)
[flake8]
extend-ignore = D1, D2, E1, E2, E3, E501, W1, W2, W3, W5
exclude =
.history
.vscode
.git
.venv
__pycache__

View File

@@ -0,0 +1,2 @@
[settings]
profile=black

View File

@@ -0,0 +1,10 @@
# Autoformatter friendly markdownlint config (all formatting rules disabled)
default: true
blank_lines: false
bullet: false
html: false
indentation: false
line_length: false
spaces: false
url: false
whitespace: false

2
.trunk/configs/.sqlfluff Normal file
View File

@@ -0,0 +1,2 @@
[sqlfluff]
dialect = ansi

View File

@@ -0,0 +1,10 @@
rules:
quoted-strings:
required: only-when-needed
extra-allowed: ["{|}"]
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
key-duplicates: {}
octal-values:
forbid-implicit-octal: true

5
.trunk/configs/ruff.toml Normal file
View File

@@ -0,0 +1,5 @@
# Generic, formatter-friendly config.
select = ["B", "D3", "D4", "E", "F"]
# Never enforce `E501` (line length violations). This should be handled by formatters.
ignore = ["E501","F401"]