Skip to content

Commit

Permalink
include pre-commit before commiting
Browse files Browse the repository at this point in the history
  • Loading branch information
luabida committed Nov 25, 2024
1 parent 6385d1c commit 9dc5987
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
default_stages: [commit, push]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
Expand All @@ -16,8 +18,6 @@ repos:
files: ""
language: system
pass_filenames: true
stages:
- commit
types:
- python
- file
Expand All @@ -30,8 +30,6 @@ repos:
language: python
name: flake8
pass_filenames: true
stages:
- commit
types:
- python

Expand All @@ -42,7 +40,5 @@ repos:
language: python
name: isort
pass_filenames: true
stages:
- commit
types:
- python
3 changes: 1 addition & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pysus/online_data/SINAN.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ def list_diseases() -> dict:
def get_available_years(disease_code: str) -> list:
"""
Fetch available years for data related to specific disease
:param disease_code: Disease code. See `SINAN.list_diseases` for valid codes
:return: A list of DBC files from a specific disease found in the FTP Server.
:param disease_code:
Disease code. See `SINAN.list_diseases` for valid codes
:return:
A list of DBC files from a specific disease found in the FTP Server.
"""
files = sinan.get_files(dis_code=disease_code)
return sorted(list(set(sinan.describe(f)["year"] for f in files)))
Expand Down

0 comments on commit 9dc5987

Please sign in to comment.