Skip to content

Commit

Permalink
1.0.3 Fix Release
Browse files Browse the repository at this point in the history
- fixed some issues from gsettings_helpers.py
- a little code updates
- flake8 ignores updated
- docs updated
- galaxy tags updated
- Bump version to 1.0.3
  • Loading branch information
shipilovds committed Jun 13, 2022
1 parent 03a2983 commit 91dc258
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 107 deletions.
9 changes: 2 additions & 7 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
[flake8]
# it's not a bug that we aren't using all of hacking, ignore:
# E201: whitespace after ‘(‘
# E202: whitespace before ‘)’
# E221: multiple spaces before operator
# E241: multiple spaces after ','
# E251: unexpected spaces around keyword / parameter equals
# E501: line too long (82 > 79 characters)
# E402: module level import not at top of file
# E741: do not use variables named ‘l’, ‘O’, or ‘I’
# E501: line too long (82 > 79 characters)
# W601: .has_key() is deprecated, use 'in'
ignore = E402, E501, W601
ignore = E241, E402, E501, W601
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

NAMESPACE = shipilovds
NAME = workstation
VERSION = 1.0.2
VERSION = 1.0.3


lint:
Expand Down
7 changes: 2 additions & 5 deletions docs/shipilovds.workstation.gsettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,10 @@ Module to set gsettings options
gsettings:
org.gnome.desktop.wm.keybindings:
keys:
switch-input-source:
- <Alt>Shift_L
switch-input-source: [<Alt>Shift_L]
org.gnome.desktop.input-sources:
keys:
sources:
- ('xkb', 'us')
- ('xkb', 'ru')
sources: ['(xkb, us)', '(xkb, ru)']
org.gtk.Settings.FileChooser:
keys:
location-mode: filename-entry
Expand Down
12 changes: 8 additions & 4 deletions galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
---
namespace: 'shipilovds'
name: 'workstation'
version: '1.0.2'
version: '1.0.3'
readme: 'README.md'
authors:
- 'Denis Shipilov @shipilovds <[email protected]>'
description: 'Collection with usefull modules for workstation'
description: 'Collection of useful modules for Gnome workstation'
license:
- 'GPL-3.0-or-later'
tags:
- collection
- desktop
- extensions
- gnome
- gnomeshell
- gsettings
- linux
- workstation
- gnome
- collection
homepage: "https://www.github.com/shipilovds/workstation"
repository: "https://www.github.com/shipilovds/workstation"
documentation: "https://www.github.com/shipilovds/workstation"
Expand Down
6 changes: 3 additions & 3 deletions helpers/generate_md_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def import_var_as_yaml(module, var, yml):
Helps to get module by name and extract yaml documentation blocks
Returns yaml obj.
"""
modpath = "{}.{}".format(MODULES_PATH.replace('/', '.'), module)
modpath = f"{MODULES_PATH.replace('/', '.')}.{module}"
module_imported = importlib.import_module(modpath)
content = getattr(module_imported, var)

Expand Down Expand Up @@ -77,8 +77,8 @@ def add_empty_line(string):
# Why don't we get namespace and collection name from galaxy config?:)
with open('galaxy.yml', 'r') as data:
galaxy = yml.load(data)
full_module_name = '{}.{}.{}'.format(galaxy['namespace'], galaxy['name'], module)
module_readme_file = '{}/{}.md'.format(DOCS_PATH, full_module_name)
full_module_name = f"{galaxy['namespace']}.{galaxy['name']}.{module}"
module_readme_file = f"{DOCS_PATH}/{full_module_name}.md"

with open(module_readme_file, 'w') as readme:
readme.write(template.render(
Expand Down
Loading

0 comments on commit 91dc258

Please sign in to comment.