-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4654 from Serene-Arc/auto_formatters
- Loading branch information
Showing
192 changed files
with
20,257 additions
and
17,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: formatting_check | ||
run-name: Check code formatting | ||
on: [push, pull_request] | ||
jobs: | ||
formatting_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
- uses: actions/checkout@v3 | ||
- uses: paolorechia/[email protected] | ||
with: | ||
tox_env: "format_check" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
|
||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.4 | ||
hooks: | ||
- id: isort | ||
name: isort (python) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,28 +13,29 @@ | |
# included in all copies or substantial portions of the Software. | ||
|
||
|
||
import confuse | ||
from sys import stderr | ||
|
||
__version__ = '1.6.1' | ||
__author__ = 'Adrian Sampson <[email protected]>' | ||
import confuse | ||
|
||
__version__ = "1.6.1" | ||
__author__ = "Adrian Sampson <[email protected]>" | ||
|
||
|
||
class IncludeLazyConfig(confuse.LazyConfig): | ||
"""A version of Confuse's LazyConfig that also merges in data from | ||
YAML files specified in an `include` setting. | ||
""" | ||
|
||
def read(self, user=True, defaults=True): | ||
super().read(user, defaults) | ||
|
||
try: | ||
for view in self['include']: | ||
for view in self["include"]: | ||
self.set_file(view.as_filename()) | ||
except confuse.NotFoundError: | ||
pass | ||
except confuse.ConfigReadError as err: | ||
stderr.write("configuration `import` failed: {}" | ||
.format(err.reason)) | ||
stderr.write("configuration `import` failed: {}".format(err.reason)) | ||
|
||
|
||
config = IncludeLazyConfig('beets', __name__) | ||
config = IncludeLazyConfig("beets", __name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
|
||
|
||
import sys | ||
|
||
from .ui import main | ||
|
||
if __name__ == "__main__": | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.