Skip to content

Commit b128d25

Browse files
committed
linting pt.1
1 parent 9dc5987 commit b128d25

File tree

16 files changed

+340
-355
lines changed

16 files changed

+340
-355
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ First, clone the Pysus repository:
5555

5656
```bash
5757
git clone https://github.com/fccoelho/PySUS.git
58-
```
58+
```
5959
then from within the PySUS directory build the container
6060

6161
```bash
@@ -72,7 +72,7 @@ Point your browser to [http://127.0.0.1:8888](http://127.0.0.1:8888) and have fu
7272
Once you are done, you can stop the container with a simple `ctrl-c` from the terminal you started it or use the following command:
7373
```bash
7474
# to find the container ID
75-
docker ps
75+
docker ps
7676
docker stop <CONTAINER ID>
7777
```
7878
### Mounting your working directory in the container
@@ -105,7 +105,7 @@ setx PYSUS_CACHEPATH "C:\Users\Me\desired\path\.pysus"
105105
In Docker, just add an extra parameter `-e PYSUS_CACHEPATH="/home/me/desired/path/.pysus"` when starting the container:
106106

107107
```bash
108-
docker run -p 8888:8888 -e PYSUS_CACHEPATH="/home/me/desired/path/.pysus" pysus:latest
108+
docker run -p 8888:8888 -e PYSUS_CACHEPATH="/home/me/desired/path/.pysus" pysus:latest
109109
```
110110

111111
## Examples
@@ -164,7 +164,7 @@ Downloading and reading SINASC data:
164164
In[1]: from pysus.online_data.sinasc import download
165165
In[2]: df = download('SE', 2015)
166166
In[3]: df.head()
167-
Out[3]:
167+
Out[3]:
168168
NUMERODN CODINST ORIGEM ... TPROBSON PARIDADE KOTELCHUCK
169169
0 19533794 MSE2805100001 1 ... 11 1 9
170170
1 52927108 MSE2802700001 1 ... 11 1 9
@@ -180,7 +180,7 @@ Dowloading and reading SIM data:
180180
In[1]: from pysus.online_data.SIM import download
181181
In[2]: df = download('ba', 2007)
182182
In[3]: df.head()
183-
Out[3]:
183+
Out[3]:
184184
NUMERODO TIPOBITO DTOBITO ... UFINFORM CODINST CB_PRE
185185
0 01499664 2 30072007 ... 29 RBA2914800001 C229
186186
1 09798190 2 04072007 ... 29 RBA2914800001 R98
@@ -196,7 +196,7 @@ Dowloading and reading CIHA data:
196196
In[1]: from pysus.online_data.CIHA import download
197197
In[2]: df = download('mg', 2009, 7)
198198
In[3]: df.head()
199-
Out[3]:
199+
Out[3]:
200200
ANO_CMPT MES_CMPT ESPEC CGC_HOSP ... CAR_INT HOMONIMO CNES FONTE
201201
0 2009 07 16505851000126 ... 2126796 1
202202
1 2009 07 16505851000126 ... 2126796 2
@@ -212,7 +212,7 @@ Dowloading and reading SIA data:
212212
In[1]: from pysus.online_data.SIA import download
213213
In[2]: bi, ps = download('AC', 2020, 3, group=["BI", "PS"])
214214
In[3]: bi.head()
215-
Out[3]:
215+
Out[3]:
216216
CODUNI GESTAO CONDIC UFMUN TPUPS ... VL_APROV UFDIF MNDIF ETNIA NAT_JUR
217217
0 2000733 120000 EP 120040 07 ... 24.2 0 0 1023
218218
1 2001063 120000 EP 120040 36 ... 7.3 0 0 1023

condarecipe/pysus/meta.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ about:
4747
home: "https://github.com/fccoelho/PySUS"
4848
license: gpl-v3
4949
license_family: GPL3
50-
license_file:
50+
license_file:
5151
summary: "Tools for dealing with Brazil's Public health data"
52-
doc_url:
53-
dev_url:
52+
doc_url:
53+
dev_url:
5454

5555
extra:
5656
recipe-maintainers:

docker/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: '3.3'
2-
services:
2+
services:
33
jupyter:
44
build:
55
context: ".."

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
language = 'en'
7676

7777
locale_dirs = ['locale']
78-
gettext_compact = False
78+
gettext_compact = False
7979

8080
# There are two options for replacing |today|: either, you set today to some
8181
# non-false value, then it is used:

docs/source/rio.html

Lines changed: 96 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,95 @@
11

22
<!DOCTYPE html>
33
<head>
4-
5-
4+
5+
66
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
7-
8-
9-
7+
8+
9+
1010
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
11-
12-
13-
14-
15-
11+
12+
13+
14+
15+
1616
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
17-
18-
19-
20-
21-
17+
18+
19+
20+
21+
2222
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
23-
24-
25-
26-
27-
23+
24+
25+
26+
27+
2828
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.min.js"></script>
29-
30-
31-
32-
33-
29+
30+
31+
32+
33+
3434
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster-src.js"></script>
35-
36-
37-
38-
39-
35+
36+
37+
38+
39+
4040
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js"></script>
41-
42-
43-
44-
45-
41+
42+
43+
44+
45+
4646
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
47-
48-
49-
50-
51-
47+
48+
49+
50+
51+
5252
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
53-
54-
55-
56-
57-
53+
54+
55+
56+
57+
5858
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css" />
59-
60-
61-
62-
63-
59+
60+
61+
62+
63+
6464
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" />
65-
66-
67-
68-
69-
65+
66+
67+
68+
69+
7070
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css" />
71-
72-
73-
74-
75-
71+
72+
73+
74+
75+
7676
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.Default.css" />
77-
78-
79-
80-
81-
77+
78+
79+
80+
81+
8282
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.css" />
83-
84-
85-
86-
87-
83+
84+
85+
86+
87+
8888
<link rel="stylesheet" href="https://raw.githubusercontent.com/python-visualization/folium/master/folium/templates/leaflet.awesome.rotate.css" />
89-
90-
91-
92-
89+
90+
91+
92+
9393
<style>
9494

9595
html, body {
@@ -107,9 +107,9 @@
107107
left:0;
108108
}
109109
</style>
110-
111-
112-
110+
111+
112+
113113
<style> #map_309ce1ef971d4af68cd7a9bf39526cf5 {
114114
position : relative;
115115
width : 100.0%;
@@ -118,23 +118,23 @@
118118
top: 0.0%;
119119
}
120120
</style>
121-
122-
123-
121+
122+
123+
124124
</head>
125125
<body>
126-
127-
128-
126+
127+
128+
129129
<div class="folium-map" id="map_309ce1ef971d4af68cd7a9bf39526cf5" ></div>
130-
131-
132-
130+
131+
132+
133133
</body>
134134
<script>
135-
136-
137-
135+
136+
137+
138138

139139
var southWest = L.latLng(-90, -180);
140140
var northEast = L.latLng(90, 180);
@@ -147,10 +147,10 @@
147147
layers: [],
148148
crs: L.CRS.EPSG3857
149149
});
150-
151-
152-
153-
150+
151+
152+
153+
154154
var tile_layer_426a222503fd49d2b786a7b9b8b7fdf3 = L.tileLayer(
155155
'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
156156
{
@@ -161,8 +161,7 @@
161161
}
162162
).addTo(map_309ce1ef971d4af68cd7a9bf39526cf5);
163163

164-
165-
166-
164+
165+
166+
167167
</script>
168-

docs/source/tutorials/tutorials.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tutorials
55
PySUS includes some Jupyter notebooks in its distribution package to serve as tutorials.
66

77

8-
Preprocessing DATASUS data
8+
Preprocessing DATASUS data
99
--------------------------
1010
#. :doc:`Preprocessing SINAN`
1111
#. :doc:`Preprocessing SIM`

pysus/ftp/databases/cnes.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ class CNES(Database):
1111
"long_name": "Cadastro Nacional de Estabelecimentos de Saúde",
1212
"source": "https://cnes.datasus.gov.br/",
1313
"description": (
14-
"O Cadastro Nacional de Estabelecimentos de Saúde (CNES) é o sistema "
15-
"de informação oficial de cadastramento de informações de todos os "
16-
"estabelecimentos de saúde no país, independentemente de sua natureza "
17-
"jurídica ou de integrarem o Sistema Único de Saúde (SUS). Trata-se do "
18-
"cadastro oficial do Ministério da Saúde (MS) no tocante à realidade da "
19-
"capacidade instalada e mão-de-obra assistencial de saúde no Brasil em "
20-
"estabelecimentos de saúde públicos ou privados, com convênio SUS ou não."
14+
"O Cadastro Nacional de Estabelecimentos de Saúde (CNES) é o "
15+
"sistema de informação oficial de cadastramento de informações "
16+
"de todos os estabelecimentos de saúde no país, independentemente "
17+
"de sua natureza jurídica ou de integrarem o Sistema Único de "
18+
"Saúde (SUS). Trata-se do cadastro oficial do Ministério da "
19+
"Saúde (MS) no tocante à realidade da capacidade instalada e "
20+
"mão-de-obra assistencial de saúde no Brasil em estabelecimentos "
21+
"de saúde públicos ou privados, com convênio SUS ou não."
2122
),
2223
}
2324
groups = {

0 commit comments

Comments
 (0)