Skip to content

Commit 10dd721

Browse files
authored
Merge pull request #59 from python-microservices/task/updated-documentation
Fix documentation render errors. Extra: pylint errors
2 parents bca4b4e + fd6c1e9 commit 10dd721

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
PyMS, Python MicroService, is a [Microservice chassis pattern](https://microservices.io/patterns/microservice-chassis.html)
44
like Spring Boot (Java) or Gizmo (Golang). PyMS is a collection of libraries, best practices and recommended ways to build
55
microservices with Python which handles cross-cutting concerns:
6+
67
- Externalized configuration
78
- Logging
89
- Health checks
@@ -17,6 +18,7 @@ Get started with [Installation](installation.md) and then get an overview with t
1718

1819
When we started to create microservice with no idea, we were looking for tutorials, guides, best practices, but we found
1920
nothing to create professional projects. Most articles say:
21+
2022
- "Install flask"
2123
- "Create routes"
2224
- (Sometimes) "Create a swagger specs"

docs/ms_class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Microservice class initialize the libraries and other process by this way:
8989
return self.application
9090
```
9191

92-
Create a class that innerit from `pyms.flask.app.Microservice` and create and override methods with your own configuration.
92+
Create a class that inherit from `pyms.flask.app.Microservice` and create and override methods with your own configuration.
9393
The next example show how to create your own logger and innit a lib like [Flask Babel](https://pythonhosted.org/Flask-Babel/)
9494

9595
```python

pyms/flask/healthcheck/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
from pyms.flask.healthcheck.healthcheck import healthcheck_blueprint
2-
3-
__all__ = ['healthcheck_blueprint']

pyms/flask/services/driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, service, *args, **kwargs):
1616

1717
def __getattr__(self, attr, *args, **kwargs):
1818
config_attribute = getattr(self.config, attr)
19-
return config_attribute if config_attribute is "" or config_attribute != {} else self.default_values.get(attr,
19+
return config_attribute if config_attribute == "" or config_attribute != {} else self.default_values.get(attr,
2020
None)
2121

2222

0 commit comments

Comments
 (0)