Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 953ba11036 |
4 changed files with 33 additions and 8 deletions
|
|
@ -14,7 +14,7 @@ jobs:
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3-venv pipx
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends python3-venv pipx
|
||||||
|
|
||||||
- name: Install Poetry
|
- name: Install Poetry
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
25
.pre-commit-config.yaml
Normal file
25
.pre-commit-config.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pycqa/flake8
|
||||||
|
rev: 7.3.0
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
|
args: ["--select=F"]
|
||||||
|
types: [python]
|
||||||
|
|
||||||
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
||||||
|
rev: 25.11.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
|
language_version: python3
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.4.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
|
||||||
|
- repo: https://github.com/PyCQA/bandit
|
||||||
|
rev: 1.9.2
|
||||||
|
hooks:
|
||||||
|
- id: bandit
|
||||||
|
files: ^src/jinjaturtle/
|
||||||
|
|
@ -234,11 +234,11 @@ class TestRoundtripTOML:
|
||||||
toml_text = """
|
toml_text = """
|
||||||
name = "test"
|
name = "test"
|
||||||
ports = [8080, 8081, 8082]
|
ports = [8080, 8081, 8082]
|
||||||
|
|
||||||
[[database]]
|
[[database]]
|
||||||
host = "db1.example.com"
|
host = "db1.example.com"
|
||||||
port = 5432
|
port = 5432
|
||||||
|
|
||||||
[[database]]
|
[[database]]
|
||||||
host = "db2.example.com"
|
host = "db2.example.com"
|
||||||
port = 5433
|
port = 5433
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ class TestTemplateYamlConsistency:
|
||||||
[[database]]
|
[[database]]
|
||||||
host = "db1.example.com"
|
host = "db1.example.com"
|
||||||
port = 5432
|
port = 5432
|
||||||
|
|
||||||
[[database]]
|
[[database]]
|
||||||
host = "db2.example.com"
|
host = "db2.example.com"
|
||||||
port = 5433
|
port = 5433
|
||||||
|
|
@ -218,15 +218,15 @@ class TestTemplateYamlConsistency:
|
||||||
name = "myapp"
|
name = "myapp"
|
||||||
version = "1.0"
|
version = "1.0"
|
||||||
ports = [8080, 8081, 8082]
|
ports = [8080, 8081, 8082]
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
host = "localhost"
|
host = "localhost"
|
||||||
port = 5432
|
port = 5432
|
||||||
|
|
||||||
[[servers]]
|
[[servers]]
|
||||||
name = "web1"
|
name = "web1"
|
||||||
ip = "10.0.0.1"
|
ip = "10.0.0.1"
|
||||||
|
|
||||||
[[servers]]
|
[[servers]]
|
||||||
name = "web2"
|
name = "web2"
|
||||||
ip = "10.0.0.2"
|
ip = "10.0.0.2"
|
||||||
|
|
@ -485,7 +485,7 @@ class TestRegressionBugs:
|
||||||
[[database]]
|
[[database]]
|
||||||
host = "db1"
|
host = "db1"
|
||||||
port = 5432
|
port = 5432
|
||||||
|
|
||||||
[[database]]
|
[[database]]
|
||||||
host = "db2"
|
host = "db2"
|
||||||
port = 5433
|
port = 5433
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue