Skip to content

Commit 30c2dd1

Browse files
authored
Introduce black formatter (PyDMD#337)
1 parent dcd10cd commit 30c2dd1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3868
-2252
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ We'd love to accept your patches and contributions to this project. There are ju
210210
separate branches in order to ensure that a pull request only includes the
211211
commits related to that bug or feature.
212212

213-
3. To ensure properly formatted code, please make sure to use 4
214-
spaces to indent the code. The easy way is to run on your bash the provided
215-
script: ./code_formatter.sh. You should also run [pylint][] over your code.
216-
It's not strictly necessary that your code be completely "lint-free",
217-
but this will help you find common style issues.
213+
3. To ensure properly formatted code, please run `black` on the files you edited.
214+
You can install `black` with `pip3 install black`.
215+
You should also run [pylint][] over your code. It's not strictly necessary
216+
that your code be completely "lint-free", but this will help you find common
217+
style issues.
218218

219219
4. Any significant changes should almost always be accompanied by tests. The
220220
project already has good test coverage, so look at some of the existing

code_formatter.sh

-52
This file was deleted.

pydmd/__init__.py

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
"""
22
PyDMD init
33
"""
4-
__all__ = ['dmdbase', 'dmd', 'fbdmd', 'mrdmd', 'cdmd', 'hodmd', 'dmdc',
5-
'optdmd', 'hankeldmd', 'rdmd', 'havok', 'bopdmd', 'pidmd']
4+
__all__ = [
5+
"dmdbase",
6+
"dmd",
7+
"fbdmd",
8+
"mrdmd",
9+
"cdmd",
10+
"hodmd",
11+
"dmdc",
12+
"optdmd",
13+
"hankeldmd",
14+
"rdmd",
15+
"havok",
16+
"bopdmd",
17+
"pidmd",
18+
]
619

720

821
from .meta import *

0 commit comments

Comments
 (0)