-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### DONE (v0.2) - [x] Fix database session with get_db or get_session - [x] Start Integration tests - [x] Docs (mkdocs + mkdocs-material[to beautify] + mkdocstrings[to transform docstrings into docs]) - [x] mkdocs on gh pages and/or readthedocs - [x] Taskipy - [x] Re-enable Coordinates on database and api's (only cep_aberto available) #### See [README.md](https://codeberg.org/Krisque/jacobson/src/branch/main/README.md) to full roadmap ### BREAKING CHANGE - Now postgres is needed because of uuid pk. - Remake migrations. #### See [CHANGELOG.md](https://codeberg.org/Krisque/jacobson/src/branch/main/CHANGELOG.md) to look at every change Reviewed-on: https://codeberg.org/Krisque/jacobson/pulls/5 Co-authored-by: Krisque <[email protected]> Co-committed-by: Krisque <[email protected]>
- Loading branch information
Showing
145 changed files
with
48,540 additions
and
2,766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,100 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
- id: check-byte-order-marker | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-vcs-permalinks | ||
- id: debug-statements | ||
- id: check-yaml | ||
files: .*\.(yaml|yml)$ | ||
- id: check-added-large-files | ||
- id: check-toml | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.5.5 | ||
hooks: | ||
- id: insert-license | ||
name: Add license for all python files | ||
files: \.py$|\.pyi$ | ||
args: | ||
[ | ||
--comment-style, | ||
'"""||"""', | ||
--license-filepath, | ||
license-templates/LICENSE.txt, | ||
--fuzzy-match-generates-todo, | ||
--use-current-year, | ||
--no-space, | ||
] | ||
- id: insert-license | ||
name: Add license for all Markdown files | ||
files: \.md$ | ||
args: | ||
[ | ||
--comment-style, | ||
"<!--||-->", | ||
--license-filepath, | ||
license-templates/LICENSE.txt, | ||
--fuzzy-match-generates-todo, | ||
--no-space, | ||
] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.4.5 | ||
hooks: | ||
- id: ruff | ||
name: Run Ruff Linter & Formater | ||
args: [--fix, --exit-non-zero-on-fix] | ||
exclude: | | ||
(?x)^( | ||
^build/| | ||
^docker/| | ||
^tests/ | ||
) | ||
- id: ruff-format | ||
name: Run Ruff Formater | ||
exclude: | | ||
(?x)( | ||
^build/| | ||
^docker/| | ||
^tests/ | ||
) | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.10.0 | ||
hooks: | ||
- id: mypy | ||
name: Run Mypy (Static type checker) | ||
exclude: | | ||
(?x)( | ||
^build/| | ||
^docker/| | ||
^tests/ | ||
) | ||
additional_dependencies: | ||
[strawberry-graphql, pydantic, pydantic-settings, sqlmodel] | ||
- repo: https://github.com/python-poetry/poetry | ||
rev: "1.8.0" | ||
hooks: | ||
- id: poetry-check | ||
- id: poetry-lock | ||
- id: poetry-export | ||
args: [-o, requirements.txt] | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.27.0 | ||
hooks: | ||
- id: commitizen | ||
- id: commitizen-branch | ||
stages: | ||
- post-commit | ||
- push | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
- id: check-byte-order-marker | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-vcs-permalinks | ||
- id: debug-statements | ||
- id: check-yaml | ||
files: .*\.(yaml|yml)$ | ||
- id: check-added-large-files | ||
args: ["--maxkb=1000"] | ||
- id: check-toml | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.5.5 | ||
hooks: | ||
- id: insert-license | ||
name: Add license for all python files | ||
files: \.py$|\.pyi$ | ||
args: | ||
[ | ||
--comment-style, | ||
'"""||"""', | ||
--license-filepath, | ||
license-templates/LICENSE.txt, | ||
--fuzzy-match-generates-todo, | ||
--use-current-year, | ||
--no-space, | ||
] | ||
- id: insert-license | ||
name: Add license for all Markdown files | ||
files: \.md$ | ||
args: | ||
[ | ||
--comment-style, | ||
"<!--||-->", | ||
--license-filepath, | ||
license-templates/LICENSE.txt, | ||
--fuzzy-match-generates-todo, | ||
--no-space, | ||
] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.5.5 | ||
hooks: | ||
- id: ruff-format | ||
name: Run Ruff Formater | ||
exclude: | | ||
(?x)( | ||
^build/| | ||
^docker/ | ||
) | ||
- id: ruff | ||
name: Run Ruff Linter | ||
args: [--fix, --exit-non-zero-on-fix] | ||
exclude: | | ||
(?x)^( | ||
^build/| | ||
^docker/| | ||
^tests/ | ||
) | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v1.11.0 | ||
hooks: | ||
- id: mypy | ||
name: Run Mypy (Static type checker) | ||
exclude: | | ||
(?x)( | ||
^build/| | ||
^docker/| | ||
^tests/ | ||
) | ||
additional_dependencies: | ||
[ | ||
"strawberry-graphql[fastapi]", | ||
pydantic, | ||
pydantic-settings, | ||
sqlmodel, | ||
] | ||
- repo: https://github.com/python-poetry/poetry | ||
rev: "1.8.0" | ||
hooks: | ||
- id: poetry-check | ||
- id: poetry-lock | ||
- id: poetry-export | ||
args: [-o, requirements.txt] | ||
- id: poetry-export | ||
args: [-o, requirements_dev.txt, --with=docs] | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.28.0 | ||
hooks: | ||
- id: commitizen | ||
- id: commitizen-branch | ||
stages: | ||
- post-commit | ||
- push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.