-
Notifications
You must be signed in to change notification settings - Fork 307
Code conventions
Oscar Esteban edited this page Apr 3, 2017
·
2 revisions
- Line width: 99 characters
In general, fmriprep has dropped support for Python 2. But we will keep some good practices to make it easier for potential contributors to send PRs with compatibility code:
- New files: declare the utf-8 encoding in the header:
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et:
- New files: first import should be
from __future__
:from __future__ import print_function, division, absolute_import, unicode_literals