@@ -12,16 +12,24 @@ These are mostly guidelines, not rules. Use your best judgment, and feel free to
1212
1313## Development
1414
15- Clone the repository:
15+ Once you cloned the repository:
1616
1717``` sh
18- # install development dependencies
19- python -m pip install -U -r requirements/development.txt
20- # alternatively: pip install -e .[dev]
21-
2218# install project as editable
2319python -m pip install -e .
2420
21+ # including development dependencies
22+ python -m pip install -e .[dev]
23+
24+ # including documentation dependencies
25+ python -m pip install -e .[docs]
26+
27+ # including testing dependencies
28+ python -m pip install -e .[test]
29+
30+ # all inclusive
31+ python -m pip install -e .[dev,docs,test]
32+
2533# install git hooks
2634pre-commit install
2735```
@@ -32,8 +40,7 @@ Then follow the [contribution guidelines](#guidelines).
3240
3341``` sh
3442# install development dependencies
35- python -m pip install -U -r requirements/testing.txt
36- # alternatively: pip install -e .[test]
43+ python -m pip install -e .[test]
3744
3845# run tests
3946pytest
4350
4451``` sh
4552# install dependencies for documentation
46- python -m pip install -U -r requirements/documentation.txt
47- # alternatively: pip install -e .[doc]
53+ python -m pip install -e .[docs]
4854
4955# build the documentation
5056mkdocs build
@@ -90,10 +96,15 @@ Feel free to use the IDE you love. Here come configurations for some popular IDE
9096
9197``` jsonc
9298{
93- // Editor
94- " files.associations" : {
95- " ./requirements/*.txt" : " pip-requirements"
99+ // JSON
100+ " [json]" : {
101+ " editor.bracketPairColorization.enabled" : true ,
102+ " editor.defaultFormatter" : " vscode.json-language-features" ,
103+ " editor.formatOnSave" : true ,
104+ " editor.guides.bracketPairs" : " active"
96105 },
106+ " json.format.enable" : true ,
107+ " json.schemaDownload.enable" : true ,
97108 // Markdown
98109 " markdown.updateLinksOnFileMove.enabled" : " prompt" ,
99110 " markdown.updateLinksOnFileMove.enableForDirectories" : true ,
@@ -104,9 +115,16 @@ Feel free to use the IDE you love. Here come configurations for some popular IDE
104115 " editor.bracketPairColorization.enabled" : true ,
105116 " editor.formatOnSave" : true ,
106117 " editor.guides.bracketPairs" : " active" ,
107- " files.trimTrailingWhitespace" : false ,
118+ " files.trimTrailingWhitespace" : false
108119 },
109120 // Python
121+ " python.analysis.autoFormatStrings" : true ,
122+ " python.analysis.autoImportCompletions" : true ,
123+ " python.analysis.typeCheckingMode" : " basic" ,
124+ " python.terminal.activateEnvInCurrentTerminal" : true ,
125+ " python.terminal.activateEnvironment" : true ,
126+ " python.testing.unittestEnabled" : true ,
127+ " python.testing.pytestEnabled" : true ,
110128 " [python]" : {
111129 " editor.codeActionsOnSave" : {
112130 " source.organizeImports" : " explicit"
@@ -119,25 +137,38 @@ Feel free to use the IDE you love. Here come configurations for some popular IDE
119137 ],
120138 " editor.wordWrapColumn" : 88 ,
121139 },
122- // Extensions
140+ // YAML
141+ " [yaml]" : {
142+ " editor.autoIndent" : " keep" ,
143+ " editor.formatOnSave" : true ,
144+ " editor.insertSpaces" : true ,
145+ " editor.tabSize" : 2 ,
146+ " diffEditor.ignoreTrimWhitespace" : false ,
147+ " editor.quickSuggestions" : {
148+ " other" : true ,
149+ " comments" : false ,
150+ " strings" : true
151+ }
152+ },
153+ // extensions
154+ " autoDocstring.guessTypes" : true ,
155+ " autoDocstring.docstringFormat" : " google-notypes" ,
156+ " autoDocstring.generateDocstringOnEnter" : false ,
123157 " flake8.args" : [
124- " --config=setup.cfg" ,
125158 " --verbose"
126159 ],
127160 " isort.args" : [
128161 " --profile" ,
129162 " black"
130163 ],
131164 " isort.check" : true ,
132- " autoDocstring.guessTypes" : true ,
133- " autoDocstring.docstringFormat" : " google" ,
134- " autoDocstring.generateDocstringOnEnter" : false ,
135165 " yaml.customTags" : [
136166 " !ENV scalar" ,
137167 " !ENV sequence" ,
138- " tag:yaml.org,2002:python/name:materialx.emoji.to_svg" ,
139- " tag:yaml.org,2002:python/name:materialx.emoji.twemoji" ,
168+ " !relative scalar" ,
169+ " tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg" ,
170+ " tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji" ,
140171 " tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
141- ],
172+ ]
142173}
143174```
0 commit comments