Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3770974
D3566.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D3566.id.diff
View Options
diff --git a/src/upsection.py b/src/upsection.py
--- a/src/upsection.py
+++ b/src/upsection.py
@@ -31,17 +31,17 @@
package = {
**package_template,
- **get_package_config()
+ **get_package_config(),
}
return json.dumps(package, sort_keys=False, indent=4) + "\n"
def get_package_config():
- package_metadata = app['config']['package']
+ package_metadata = app["config"]["package"]
- repository = get_repository(package_metadata['repository_name'])
- del package_metadata['repository_name']
+ repository = get_repository(package_metadata["repository_name"])
+ del package_metadata["repository_name"]
return {
**package_metadata,
@@ -59,13 +59,13 @@
def get_browsers_list():
- return "\n".join(app['config']['tasks']['autoprefixer']['browsers'])
+ return "\n".join(app["config"]["tasks"]["autoprefixer"]["browsers"])
def get_repository(name):
return {
"type": "git",
- "url": "https://devcentral.nasqueron.org/source/" + name + ".git"
+ "url": "https://devcentral.nasqueron.org/source/" + name + ".git",
}
@@ -75,12 +75,12 @@
def initialize_app():
- with open('config.yml') as fd:
+ with open("config.yml") as fd:
config = yaml.safe_load(fd)
return {
- 'config': config,
- 'builders': get_builders(),
+ "config": config,
+ "builders": get_builders(),
}
@@ -93,8 +93,8 @@
def build_all():
- for file_to_build, builder in app['builders'].items():
- with open(file_to_build, 'w') as fd:
+ for file_to_build, builder in app["builders"].items():
+ with open(file_to_build, "w") as fd:
fd.write(builder())
@@ -105,12 +105,12 @@
def build(file_to_build):
try:
- content = app['builders'][file_to_build]()
+ content = app["builders"][file_to_build]()
except KeyError:
print("Don't know how to generate", file_to_build, file=sys.stderr)
return
- with open(file_to_build, 'w') as fd:
+ with open(file_to_build, "w") as fd:
fd.write(content)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 22:09 (19 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2261136
Default Alt Text
D3566.id.diff (2 KB)
Attached To
Mode
D3566: Apply black style
Attached
Detach File
Event Timeline
Log In to Comment