-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: enforce more lint rules in codebase (#101)
* feat: add ruff.toml * treewide: format gamefix modules through ruff - Enforces single quotes, a line length of 88, and updates the format of comment * treewide: remove 'pylint: disable=C0103' from gamefixes * treewide: format python files through ruff * treewide: remove all pylint disables * __init__: remove unused import * __init__: don't use bare except * debug: don't log system python version * tools: delete lint.sh * workflows: lint through ruff * ruff.toml: add ANN rule to enforce typings * ruff.toml: exclude test file * treewide: add return type for all gamefixes * steamhelper: prefer using f-string * config: fix missing types * check_gamefixes: fix missing type * util: fix reference to cache directory * util: add missing types to functions * util: fix types for function calls * workflows: fix lint step * workflows: lint winetricks * util: use Union type instead of pipe * ruff.toml: add FLY, ARG, and UP rules * treewide: use built in open * treewide: remove unnecessary open mode * treewide: fix deprecated imports * util: prefer OSError over IOError - Use OSError directly as advised in UP024 from ruff * ruff.toml: add pydocstyle rule * treewide: enforce pydocstyle for *.py files * treewide: enforce pydocstyle for gamefixes * ruff.toml: add lint exceptions * treewide: ruff lint * debug: fix type when printing sys.argv * ruff.toml: enforce D211 rule * gamefixes-steam: ruff format * gamefixes-steam: fix invalid steam appid on rebase
- Loading branch information
Showing
291 changed files
with
1,715 additions
and
2,512 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
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
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
Oops, something went wrong.