Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
[run]
concurrency = thread,gevent
omit =
*/__init__.py
main.py
*/data/*
*/models/*
*/schemas/*
*/tests/*

[report]
exclude_lines =
pragma: no cover # Standard pragma to intentionally skip lines
if __name__ == .__main__.: # Skips CLI bootstrapping code
raise NotImplementedError # Often placeholder stubs not meant to be covered
28 changes: 16 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["tests"],
"files.exclude": {
"**/__pycache__": true,
"**/.git": true,
"**/.DS_Store": true
},
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8",
"editor.formatOnSave": true
}
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": ["tests"],
"files.exclude": {
"**/__pycache__": true,
"**/.git": true,
"**/.DS_Store": true
},
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8",
"editor.formatOnSave": true
},
"sonarlint.connectedMode.project": {
"connectionId": "nanotaboada",
"projectKey": "nanotaboada_python-samples-fastapi-restful"
}
}
44 changes: 20 additions & 24 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,29 @@
# Codecov Repository YAML
# https://docs.codecov.com/docs/codecov-yaml

coverage:
# https://docs.codecov.com/docs/commit-status
status:
project:
default:
target: 80%
threshold: 10%
if_not_found: success
if_ci_failed: error

if_ci_failed: success
patch:
default:
target: 80%
threshold: 10%
if_not_found: success

flags:
unit:
paths:
- "services/"
- "routes/"
carryforward: true

# https://docs.codecov.com/docs/components#component-options
component_management:
default_rules:
statuses:
- type: project
target: auto
branches:
- "!main"

individual_components:
- component_id: services
name: Services
Expand All @@ -42,18 +37,19 @@ component_management:
comment:
layout: "header, diff, flags, components"

# https://docs.codecov.com/docs/ignoring-paths
ignore:
- "assets/**/*"
- "data/**/*"
- "models/**/*"
- "postman_collections/**/*"
- "schemas/**/*"
- "tests/**/*"
- "**/*.yml"
- "**/*.json"
- "**/*.txt"
- "**/__pycache__/"
- "**/*.pyc"
- "LICENSE"
- "main.py"
- "README.md"
- "^assets/.*"
- "^data/.*"
- "^models/.*"
- "^postman_collections/.*"
- "^schemas/.*"
- "^tests/.*"
- ".*\\.yml$"
- ".*\\.json$"
- ".*\\.txt$"
- "^__pycache__(/.*)?$"
- ".*\\.pyc$"
- "^LICENSE$"
- "^main\\.py$"
- "^README\\.md$"
Loading