style(): small improvements
This commit is contained in:
@@ -71,9 +71,7 @@ def _validate_channel_config(
|
||||
raise ValidationError(
|
||||
{"config": "Channel config must be a JSON object."}
|
||||
)
|
||||
for required_field in REQUIRED_CHANNEL_CONFIG_FIELDS.get(
|
||||
channel_type, ()
|
||||
):
|
||||
for required_field in REQUIRED_CHANNEL_CONFIG_FIELDS.get(channel_type, ()):
|
||||
_required_str_config(config, required_field, channel_type)
|
||||
|
||||
|
||||
|
||||
+11
-5
@@ -14,35 +14,41 @@ help: default
|
||||
run:
|
||||
@ uv run python manage.py runserver
|
||||
|
||||
[group('style')]
|
||||
style:
|
||||
just format
|
||||
just lint
|
||||
just mypy
|
||||
|
||||
[group('test')]
|
||||
check:
|
||||
just style
|
||||
just test
|
||||
just test-coverage
|
||||
|
||||
# lints codebase using golangci-lint
|
||||
[group('lint')]
|
||||
[group('style')]
|
||||
lint:
|
||||
@ uv run ruff check .
|
||||
|
||||
# lints and fixes codebase using ruff
|
||||
[group('lint')]
|
||||
[group('style')]
|
||||
fix:
|
||||
@ uv run ruff check . --fix
|
||||
|
||||
# formats codebase using ruff
|
||||
[group('lint')]
|
||||
[group('style')]
|
||||
format:
|
||||
@ uv run ruff format .
|
||||
|
||||
# checks correct formatting of the codebase using ruff
|
||||
[group('style')]
|
||||
format-check:
|
||||
@ uv run ruff format . --check
|
||||
|
||||
alias fmt := format
|
||||
|
||||
# lints codebase using mypy
|
||||
[group('lint')]
|
||||
[group('style')]
|
||||
mypy:
|
||||
@ uv run mypy .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user