From 56f27b6c7df8f4974b07a6b70ca66db5bd1322da Mon Sep 17 00:00:00 2001 From: Flavio Curella <89607+fcurella@users.noreply.github.com> Date: Mon, 12 Aug 2024 10:30:48 -0500 Subject: [PATCH] Update coding_style.rst --- docs/coding_style.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/coding_style.rst b/docs/coding_style.rst index ba763397e5..34f75fda7c 100644 --- a/docs/coding_style.rst +++ b/docs/coding_style.rst @@ -11,6 +11,12 @@ Please include `type hints`_ for every provider method you write. An overview of You can find our complete flake8 configuration in the tox.ini_ file. +Use `is` instead of `==` when comparing a variable to `None`, `False`, or `True` (see https://www.flake8rules.com/rules/E711.html): + +```python +if my_var is None: + ... # do something +``` Data Sets --------- @@ -21,6 +27,9 @@ and/or origin of the data. If the source is a wiki, please also include the date We only accept new data if it's coming from statistical sources, such as census or government institutions. This includes names and their distribution. +You may include multiple sources, but each name must come from a source. We will not accept list of names compiled +exclusively by contributors. + Name Lists ----------