File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,14 @@ We use the famous [gitflow](http://nvie.com/posts/a-successful-git-branching-mod
1919
2020## Code Guidelines
2121
22- - Use [ PEP8] ( http://www.python.org/dev/peps/pep-0008/ ) ;
22+ - Follows [ PEP8] ( http://www.python.org/dev/peps/pep-0008/ ) , use [ black ] ( https://github.com/ambv/black ) ;
2323- Write tests for your new features (please see "Tests" topic below);
2424- Always remember that [ commented code is dead
2525 code] ( http://www.codinghorror.com/blog/2008/07/coding-without-comments.html ) ;
2626- Name identifiers (variables, classes, functions, module names) with meaningful
2727 and pronounceable names (` x ` is always wrong);
28- - When manipulating strings, use [ Python's new-style
29- formatting] ( http://docs.python.org/library/string.html#format-string-syntax )
30- (` '{} = {}'.format(a, b) ` instead of ` '%s = %s' % (a, b) ` );
28+ - When manipulating strings, use [ f-String] ( https://www.python.org/dev/peps/pep-0498/ )
29+ (use ` "{a} = {b}" ` , instead of ` "{} = {}".format(a, b) ` and ` "%s = %s' % (a, b)" ` );
3130- All ` #TODO ` comments should be turned into issues (use our
3231 [ GitHub issue system] ( https://github.com/PyThaiNLP/pythainlp/ ) );
3332- Run all tests before pushing (just execute ` tox ` ) so you will know if your
You can’t perform that action at this time.
0 commit comments