aboutsummaryrefslogtreecommitdiffstats
path: root/dodo.py
diff options
context:
space:
mode:
authorLibravatarDererk <dererk@satellogic.com>2016-11-15 14:18:53 -0300
committerLibravatarDererk <dererk@satellogic.com>2016-11-15 14:18:53 -0300
commit1ad5102b7ddd181bb9c632b124d3ea4c7db28be6 (patch)
tree73dda18465d0f4b8eb52d4482282a387c9f67c95 /dodo.py
parentb67294f76809a681ff73f209ed691a3e3f00563d (diff)
parentffb671c61a24a9086343b54bad080e145ff33fc5 (diff)
Merge tag 'upstream/7.8.1'
Upstream version 7.8.1 # gpg: Firmado el mar 15 nov 2016 14:18:48 ART # gpg: usando RSA clave A6C7B88B9583046A11C5403E0B00FB6CEBE2D002 # gpg: Firma correcta de "Ulises Vitulli <dererk@debian.org>" [absoluta] # gpg: alias "Dererk <dererk@torproject.org>" [absoluta] # gpg: alias "Ulises Vitulli <uvitulli@fi.uba.ar>" [absoluta] # gpg: alias "Ulises Vitulli <dererk@satellogic.com>" [absoluta]
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: