aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-07-09 17:44:49 +0200
committerGravatar Matteo Bertucci <[email protected]>2021-07-09 17:44:49 +0200
commit877d3c219b56ad170a382e397b3f174d9ee8b948 (patch)
treed315b8e0e6151d59ba5914665207b05976730063 /pydis_site
parentCode jam: switch home to use the ongoing banner (diff)
Code jam: use case name in code style
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/templates/events/pages/code-jams/code-style-guide.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/templates/events/pages/code-jams/code-style-guide.html b/pydis_site/templates/events/pages/code-jams/code-style-guide.html
index 31156da2..4ff5baaf 100644
--- a/pydis_site/templates/events/pages/code-jams/code-style-guide.html
+++ b/pydis_site/templates/events/pages/code-jams/code-style-guide.html
@@ -91,7 +91,7 @@ result = [
def my_function():
my_variable = "value"</code></pre>
- <p>Class and type variable names should use the camel case style.</p>
+ <p>Class and type variable names should use the PascalCase style.</p>
<pre><code class="language-python">from typing import List
@@ -99,7 +99,7 @@ class MyClass:
pass
ListOfMyClass = List[MyClass]</code></pre>
- <p>Constant names should be all uppercase, and words should be separated with underscores.</p>
+ <p>Constant names should use the SCREAMING_SNAKE_CASE style.</p>
<pre><code class="language-python">MY_CONSTANT = 1</code></pre>
<p>
You should avoid single-character names, as these might be confusing.