Skip to content

Commit d928bad

Browse files
committed
include pre-commit before commiting
1 parent 6385d1c commit d928bad

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
default_stages: [commit, push]
2+
13
repos:
24
- repo: https://github.com/pre-commit/pre-commit-hooks
35
rev: v4.1.0
@@ -16,8 +18,6 @@ repos:
1618
files: ""
1719
language: system
1820
pass_filenames: true
19-
stages:
20-
- commit
2121
types:
2222
- python
2323
- file
@@ -30,8 +30,6 @@ repos:
3030
language: python
3131
name: flake8
3232
pass_filenames: true
33-
stages:
34-
- commit
3533
types:
3634
- python
3735

@@ -42,7 +40,5 @@ repos:
4240
language: python
4341
name: isort
4442
pass_filenames: true
45-
stages:
46-
- commit
4743
types:
4844
- python

poetry.lock

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pysus/online_data/SINAN.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ def list_diseases() -> dict:
1616
def get_available_years(disease_code: str) -> list:
1717
"""
1818
Fetch available years for data related to specific disease
19-
:param disease_code: Disease code. See `SINAN.list_diseases` for valid codes
20-
:return: A list of DBC files from a specific disease found in the FTP Server.
19+
:param disease_code:
20+
Disease code. See `SINAN.list_diseases` for valid codes
21+
:return:
22+
A list of DBC files from a specific disease found in the FTP Server.
2123
"""
2224
files = sinan.get_files(dis_code=disease_code)
2325
return sorted(list(set(sinan.describe(f)["year"] for f in files)))

0 commit comments

Comments
 (0)