-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'add_linting_rules' into master
- Loading branch information
Showing
19 changed files
with
420 additions
and
179 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ description = "TUI program to check the ProtonDB compatibility of all the games | |
authors = ["TabulateJarl8 <[email protected]>"] | ||
license = "GPLv3" | ||
readme = "README.md" | ||
packages = [{include = "vapor"}] | ||
packages = [{ include = "vapor" }] | ||
homepage = "https://tabulate.tech/software/vapor" | ||
repository = "https://github.com/TabulateJarl8/vapor" | ||
keywords = ["steam", "protondb", "compatibility", "textual", "tui"] | ||
|
@@ -22,11 +22,9 @@ classifiers = [ | |
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Typing :: Typed" | ||
] | ||
include = [ | ||
{ path = "tests", format = "sdist" }, | ||
"Typing :: Typed", | ||
] | ||
include = [{ path = "tests", format = "sdist" }] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8.1" | ||
|
@@ -81,21 +79,20 @@ exclude_also = [ | |
|
||
] | ||
|
||
omit = [ | ||
"*/__main__.py", | ||
] | ||
omit = ["*/__main__.py"] | ||
|
||
|
||
[tool.ruff.lint] | ||
preview = true | ||
extend-select = [ | ||
# pycodestyle | ||
"E", | ||
"W293", | ||
"W292", | ||
"W605", | ||
# Warnings | ||
"W", | ||
# Pyflakes | ||
"F", | ||
# pydocstyle | ||
"D", | ||
# pyupgrade | ||
"UP", | ||
# flake8-bugbear | ||
|
@@ -128,9 +125,66 @@ extend-select = [ | |
# eradicate | ||
"ERA", | ||
# perflint | ||
"PERF" | ||
"PERF", | ||
# flake8-2020 | ||
"YTT", | ||
# flake8-annotations | ||
"ANN", | ||
# flake8-async | ||
"ASYNC", | ||
# flake8-builtins | ||
"A", | ||
# flake8-commas | ||
"COM", | ||
# flake8-implicit-str-concat | ||
"ISC", | ||
# flake8-print | ||
"T20", | ||
# flake8-pytest-style | ||
"PT", | ||
# flake8-use-pathlib | ||
"PTH", | ||
# pylint | ||
"PL", | ||
# tryceratops | ||
"TRY", | ||
# refurb | ||
"FURB", | ||
# pydoclint | ||
"DOC", | ||
# ruff rules | ||
"RUF", | ||
] | ||
ignore = ["E501", "E274", "S110", "FBT001", "FBT002", "PERF203", "S101"] | ||
|
||
ignore = [ | ||
# complains about tab indentation | ||
"W191", | ||
"D206", | ||
# adds a line break before a class docstring | ||
"D203", | ||
# puts the first line summary of a docstring on a different line than the """ | ||
"D213", | ||
# tries to add a blank line after the last docstring section | ||
"D413", | ||
# yells at you if you use a bool typed function argument | ||
"FBT001", | ||
"FBT002", | ||
# yells at you for using try-except in a for loop | ||
"PERF203", | ||
# allow for the use of Any | ||
"ANN401", | ||
# false positives for overriding methods (i think) | ||
"PLR6301", | ||
# disable too many branches check | ||
"PLR0912", | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"tests/*" = ["S101", "ANN001", "ANN002", "PLC2701", "ARG002", "PLR2004", "DOC"] | ||
"vapor/main.py" = ["DOC402"] | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "google" | ||
|
||
[tool.ruff.format] | ||
quote-style = "single" | ||
|
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 @@ | ||
"""__init__.py for the AUR.""" |
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.