aboutsummaryrefslogtreecommitdiffstats
path: root/dodo.py
diff options
context:
space:
mode:
Diffstat (limited to 'dodo.py')
-rw-r--r--dodo.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/dodo.py b/dodo.py
index 82cd365..fe08661 100644
--- a/dodo.py
+++ b/dodo.py
@@ -24,11 +24,12 @@ def task_flake8():
'actions': ['flake8 nikola/'],
}
-def task_pep257():
- """pep257 -- static check for docstring style"""
+
+def task_pydocstyle():
+ """pydocstyle -- static check for docstring style"""
yield {
'name': os.path.join(os.getcwd(), 'nikola'),
- 'actions': ["pep257 --count --match-dir='(?!^\.)(?!data).*' nikola/"],
+ 'actions': ["pydocstyle --count --match-dir='(?!^\.)(?!data).*' nikola/"],
}
@@ -41,7 +42,7 @@ def task_locale():
locales = []
languages = set()
for line in out.splitlines():
- if line.endswith('.utf8') and '_' in line:
+ if (line.endswith('.utf8') or line.endswith('.UTF-8')) and '_' in line:
lang = line.split('_')[0]
if lang not in languages:
try: