Skip to content

Commit 3672a5e

Browse files
authored
Merge pull request #43 from GabrielSalla/organize-files
Organize files
2 parents 71079f1 + 7bcbf95 commit 3672a5e

File tree

4 files changed

+4
-82
lines changed

4 files changed

+4
-82
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
steps:
1616
- name: Checkout Repository
1717
uses: actions/checkout@v4
18-
# - name: Install Docker
19-
# run: sudo apt install docker-compose
2018
- name: Build image
2119
run: make build-dev
2220
- name: Save Docker image
@@ -34,8 +32,6 @@ jobs:
3432
steps:
3533
- name: Checkout Repository
3634
uses: actions/checkout@v4
37-
# - name: Install Docker
38-
# run: sudo apt install docker-compose
3935
- name: Download Docker image
4036
uses: actions/download-artifact@v4
4137
with:
@@ -53,8 +49,6 @@ jobs:
5349
steps:
5450
- name: Checkout Repository
5551
uses: actions/checkout@v4
56-
# - name: Install Docker
57-
# run: sudo apt install docker-compose
5852
- name: Download Docker image
5953
uses: actions/download-artifact@v4
6054
with:
@@ -72,8 +66,6 @@ jobs:
7266
steps:
7367
- name: Checkout Repository
7468
uses: actions/checkout@v4
75-
# - name: Install Docker
76-
# run: sudo apt install docker-compose
7769
- name: Download Docker image
7870
uses: actions/download-artifact@v4
7971
with:

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ down-local:
3232
docker compose -f docker-compose-local.yaml down
3333

3434
linter:
35+
docker compose -f docker-compose-dev.yaml run --rm --no-deps sentinela-dev ruff check
3536
docker compose -f docker-compose-dev.yaml run --rm --no-deps sentinela-dev ruff format --check --diff
3637

3738
mypy:

alembic.ini

Lines changed: 2 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,11 @@
1-
# A generic, single database configuration.
2-
31
[alembic]
4-
# path to migration scripts.
5-
# Use forward slashes (/) also on windows to provide an os agnostic path
62
script_location = migrations
7-
8-
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
9-
# Uncomment the line below if you want the files to be prepended with date and time
103
file_template = %%(year)d%%(month).2d%%(day).2d%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
11-
12-
# sys.path path, will be prepended to sys.path if present.
13-
# defaults to the current working directory.
144
prepend_sys_path = .
15-
16-
# timezone to use when rendering the date within the migration file
17-
# as well as the filename.
18-
# If specified, requires the python>=3.9 or backports.zoneinfo library.
19-
# Any required deps can installed by adding `alembic[tz]` to the pip requirements
20-
# string value is passed to ZoneInfo()
21-
# leave blank for localtime
225
timezone = America/Sao_Paulo
6+
version_path_separator = os
237

24-
# max length of characters to apply to the "slug" field
25-
# truncate_slug_length = 40
26-
27-
# set to 'true' to run the environment during
28-
# the 'revision' command, regardless of autogenerate
29-
# revision_environment = false
30-
31-
# set to 'true' to allow .pyc and .pyo files without
32-
# a source .py file to be detected as revisions in the
33-
# versions/ directory
34-
# sourceless = false
35-
36-
# version location specification; This defaults
37-
# to alembic/versions. When using multiple version
38-
# directories, initial revisions must be specified with --version-path.
39-
# The path separator used here should be the separator specified by "version_path_separator" below.
40-
# version_locations = %(here)s/bar:%(here)s/bat:alembic/versions
41-
42-
# version path separator; As mentioned above, this is the character used to split
43-
# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
44-
# If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.
45-
# Valid values for version_path_separator are:
46-
#
47-
# version_path_separator = :
48-
# version_path_separator = ;
49-
# version_path_separator = space
50-
version_path_separator = os # Use os.pathsep. Default configuration used for new projects.
51-
52-
# set to 'true' to search source files recursively
53-
# in each "version_locations" directory
54-
# new in Alembic version 1.10
55-
# recursive_version_locations = false
56-
57-
# the output encoding used when revision files
58-
# are written from script.py.mako
59-
# output_encoding = utf-8
60-
61-
sqlalchemy.url = driver://user:pass@localhost/dbname
62-
63-
64-
[post_write_hooks]
65-
# post_write_hooks defines scripts or Python functions that are run
66-
# on newly generated revision scripts. See the documentation for further
67-
# detail and examples
68-
69-
# format using "black" - use the console_scripts runner, against the "black" entrypoint
70-
# hooks = black
71-
# black.type = console_scripts
72-
# black.entrypoint = black
73-
# black.options = -l 79 REVISION_SCRIPT_FILENAME
74-
75-
# lint with attempts to fix using "ruff" - use the exec runner, execute a binary
76-
# hooks = ruff
77-
# ruff.type = exec
78-
# ruff.executable = %(here)s/.venv/bin/ruff
79-
# ruff.options = --fix REVISION_SCRIPT_FILENAME
8+
sqlalchemy.url =
809

8110
# Logging configuration
8211
[loggers]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ case-sensitive = true
5454

5555
[tool.mypy]
5656
mypy_path = "src"
57-
files = ["src/**/*.py", "tests/**/*.py", "internal_monitors/**/*.py", "sample_monitors/**/*.py", "tools/**/*.py"]
57+
files = ["src", "tests", "internal_monitors", "sample_monitors", "tools"]
5858
ignore_missing_imports = true
5959
warn_return_any = true
6060
check_untyped_defs = true

0 commit comments

Comments
 (0)