Skip to content

Commit

Permalink
Merge pull request #501 from byuccl/format-update
Browse files Browse the repository at this point in the history
Check logging for f-strings
  • Loading branch information
jgoeders authored Aug 14, 2024
2 parents ed75901 + 8af3dba commit 6f6f4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codingstandard.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Note that this is subject to change and discussion.
+ Maximum of 15 locals per function.
+ No else after return statement.
+ Run all code through black.
+ For string generation, use f-strings.
+ For string generation, use f-strings - except for [logging](https://docs.python.org/3/howto/logging.html#optimization)
+ If a file has a main, the main should take no arguments, parse the argv, and only call another function.
+ If comparing against a singleton object (`True`, `False`, `None`), use `is` instead of `==`, `is not` instead of `!=`.
+ For parsing system parameters, use argparse
Expand Down

0 comments on commit 6f6f4ed

Please sign in to comment.