♻ Move project source files to top level from src, update Sentry dependency (#630)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
6
backend/scripts/format-imports.sh
Executable file
6
backend/scripts/format-imports.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh -e
|
||||
set -x
|
||||
|
||||
# Sort imports one per line, so autoflake can remove unused imports
|
||||
isort --recursive --force-single-line-imports --apply app
|
||||
sh ./scripts/format.sh
|
6
backend/scripts/format.sh
Executable file
6
backend/scripts/format.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh -e
|
||||
set -x
|
||||
|
||||
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place app --exclude=__init__.py
|
||||
black app
|
||||
isort --recursive --apply app
|
8
backend/scripts/lint.sh
Normal file
8
backend/scripts/lint.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
||||
mypy app
|
||||
black app --check
|
||||
isort --recursive --check-only app
|
||||
flake8
|
6
backend/scripts/test-cov-html.sh
Executable file
6
backend/scripts/test-cov-html.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
bash scripts/test.sh --cov-report=html "${@}"
|
6
backend/scripts/test.sh
Executable file
6
backend/scripts/test.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
pytest --cov=app --cov-report=term-missing app/tests "${@}"
|
Reference in New Issue
Block a user