-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'V3/develop' into V3/enhancement/streams_twitchteams
- Loading branch information
Showing
406 changed files
with
35,182 additions
and
27,262 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
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 |
---|---|---|
|
@@ -20,7 +20,11 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
- run: "python -m pip install git+https://github.com/pycqa/pyflakes@1911c20#egg=pyflakes git+https://github.com/pycqa/pycodestyle@d219c68#egg=pycodestyle git+https://github.com/pycqa/[email protected]#egg=flake8" | ||
- run: > | ||
python -m pip install | ||
'pyflakes @ https://github.com/pycqa/pyflakes/tarball/1911c20' | ||
'pycodestyle @ https://github.com/pycqa/pycodestyle/tarball/d219c68' | ||
'flake8 @ https://github.com/pycqa/flake8/tarball/3.7.9' | ||
name: Install Flake8 | ||
- run: "python -m flake8 . --count --select=E9,F7,F82 --show-source" | ||
name: Flake8 Linting |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import sys | ||
from pathlib import Path | ||
|
||
import yaml | ||
|
||
ROOT_FOLDER = Path(__file__).parents[3].absolute() | ||
AUDIO_FOLDER = ROOT_FOLDER / "redbot/cogs/audio" | ||
|
||
# We want to import `redbot.cogs.audio.managed_node` package as if it were top-level package | ||
# so we have to the `redbot/cogs/audio` directory to Python's path. | ||
sys.path.insert(0, str(AUDIO_FOLDER)) | ||
|
||
|
||
def main() -> int: | ||
try: | ||
output_file = sys.argv[1] | ||
except IndexError: | ||
print("Usage:", sys.argv[0], "<output_file>", file=sys.stderr) | ||
return 2 | ||
|
||
import managed_node | ||
|
||
server_config = managed_node.get_default_server_config() | ||
with open(output_file, "w", encoding="utf-8") as fp: | ||
yaml.safe_dump(server_config, fp) | ||
|
||
return 0 | ||
|
||
|
||
if __name__ == "__main__": | ||
raise SystemExit(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.