Skip to content

Commit ab1ae28

Browse files
authored
Merge pull request #328 from nanotaboada/feature/coverage-settings
feature/coverage-settings
2 parents 575aa81 + 26f6f43 commit ab1ae28

File tree

5 files changed

+63
-24
lines changed

5 files changed

+63
-24
lines changed

.codacy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# https://docs.codacy.com/repositories-configure/codacy-configuration-file/
22

33
exclude_paths:
4-
- ".github"
5-
- ".vscode"
6-
- "LICENSE"
7-
- "README.md"
4+
- "assets/**/*"
85
- "data/**/*"
96
- "models/**/*"
7+
- "postman_collections/**/*"
108
- "schemas/**/*"
119
- "tests/**/*"
12-
- "postman_collections/**/*"
10+
- "**/*.yml"
11+
- "**/*.json"
12+
- "**/*.txt"
13+
- "**/__pycache__/"
14+
- "**/*.pyc"
15+
- "LICENSE"
1316
- "main.py"
17+
- "README.md"

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
[![CodeFactor](https://www.codefactor.io/repository/github/nanotaboada/python-samples-fastapi-restful/badge)](https://www.codefactor.io/repository/github/nanotaboada/python-samples-fastapi-restful)
1010
[![codebeat badge](https://codebeat.co/badges/4c4f7c08-3b35-4b57-a875-bf2043efe515)](https://codebeat.co/projects/github-com-nanotaboada-python-samples-fastapi-restful-master)
1111

12-
13-
1412
## Manifesto
1513

1614
> "Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse, you might be scared away by the sheer size of the work you envision. So start small, and think about the details. Don't think about some big picture and fancy design. If it doesn't solve some fairly immediate need, it's almost certainly over-designed. And don't expect people to jump in and help you. That's not how these things work. You need to get something half-way _useful_ first, and then others will say "hey, that _almost_ works for me", and they'll get involved in the project." — Linus Torvalds
@@ -23,7 +21,7 @@ Proof of Concept for a RESTful API made with [Python 3](https://www.python.org/)
2321

2422
The following is a simplified dependency diagram of modules and main libraries:
2523

26-
![Dependency Diagram](python-samples-fastapi-restful.svg)
24+
![Dependency Diagram](assets/images/python-samples-fastapi-restful.svg)
2725

2826
## Install
2927

@@ -45,7 +43,7 @@ uvicorn main:app --reload --port 9000
4543
http://localhost:9000/docs
4644
```
4745

48-
![API Documentation](python-samples-fastapi-restful-docs.png)
46+
![API Documentation](assets/images/python-samples-fastapi-restful-docs.png)
4947

5048
## Credits
5149

File renamed without changes.
File renamed without changes.

codecov.yml

Lines changed: 52 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,59 @@
11
# https://docs.codecov.com/docs/codecov-yaml
22

3-
ignore:
4-
- "data"
5-
- "models"
6-
- "schemas"
7-
- "tests"
8-
- "postman_collections"
9-
- "main.py"
10-
113
coverage:
124
status:
135
project:
14-
routes:
15-
paths:
16-
- "routes"
17-
services:
18-
paths:
19-
- "services"
6+
default:
7+
target: 80%
8+
threshold: 10%
9+
if_not_found: success
10+
if_ci_failed: error
11+
2012
patch:
2113
default:
22-
informational: true
14+
target: 80%
15+
threshold: 10%
16+
17+
flags:
18+
unit:
19+
paths:
20+
- "services/"
21+
- "routes/"
22+
carryforward: true
23+
24+
component_management:
25+
default_rules:
26+
statuses:
27+
- type: project
28+
target: auto
29+
branches:
30+
- "!main"
31+
32+
individual_components:
33+
- component_id: services
34+
name: Services
35+
paths:
36+
- "services/"
37+
- component_id: routes
38+
name: Routes
39+
paths:
40+
- "routes/"
41+
42+
comment:
43+
layout: "header, diff, flags, components"
44+
45+
ignore:
46+
- "assets/**/*"
47+
- "data/**/*"
48+
- "models/**/*"
49+
- "postman_collections/**/*"
50+
- "schemas/**/*"
51+
- "tests/**/*"
52+
- "**/*.yml"
53+
- "**/*.json"
54+
- "**/*.txt"
55+
- "**/__pycache__/"
56+
- "**/*.pyc"
57+
- "LICENSE"
58+
- "main.py"
59+
- "README.md"

0 commit comments

Comments
 (0)