-
-
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.
[pre-commit.ci] pre-commit autoupdate (#56)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/hhatto/autopep8: v2.1.0 → v2.3.1](hhatto/autopep8@v2.1.0...v2.3.1) - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.2.1](tox-dev/pyproject-fmt@1.8.0...2.2.1) - [github.com/google/yamlfmt: v0.12.1 → v0.13.0](google/yamlfmt@v0.12.1...v0.13.0) - [github.com/asottile/reorder-python-imports: v3.12.0 → v3.13.0](asottile/reorder-python-imports@v3.12.0...v3.13.0) - [github.com/asottile/pyupgrade: v3.15.2 → v3.17.0](asottile/pyupgrade@v3.15.2...v3.17.0) - [github.com/astral-sh/ruff-pre-commit: v0.4.3 → v0.6.4](astral-sh/ruff-pre-commit@v0.4.3...v0.6.3) - [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.11.2](pre-commit/mirrors-mypy@v1.10.0...v1.11.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
209b946
commit 1453c6d
Showing
4 changed files
with
52 additions
and
58 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 |
---|---|---|
|
@@ -10,10 +10,10 @@ description = "A low-fat task runner." | |
readme = "README.md" | ||
license = "ISC" | ||
maintainers = [ | ||
{ name = "Nikita Karamov", email = "[email protected]" }, | ||
{ name = "Nikita Karamov", email = "[email protected]" }, | ||
] | ||
authors = [ | ||
{ name = "Nikita Karamov", email = "[email protected]" }, | ||
{ name = "Nikita Karamov", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
classifiers = [ | ||
|
@@ -40,11 +40,9 @@ dynamic = [ | |
] | ||
dependencies = [ | ||
] | ||
[project.urls] | ||
Issues = "https://github.com/kytta/skyr/issues" | ||
Source = "https://github.com/kytta/skyr" | ||
[project.scripts] | ||
skyr = "skyr:main" | ||
urls.Issues = "https://github.com/kytta/skyr/issues" | ||
urls.Source = "https://github.com/kytta/skyr" | ||
scripts.skyr = "skyr:main" | ||
|
||
[tool.setuptools_scm] | ||
|
||
|
@@ -60,64 +58,59 @@ dependencies = [ | |
|
||
[tool.hatch.envs.default.scripts] | ||
test = [ | ||
"pytest {args:tests}", | ||
"pytest {args:tests}", | ||
] | ||
cov = [ | ||
"coverage erase", | ||
"coverage run -m pytest {args:tests}", | ||
"coverage report", | ||
"coverage xml" | ||
"coverage erase", | ||
"coverage run -m pytest {args:tests}", | ||
"coverage report", | ||
"coverage xml", | ||
] | ||
|
||
[[tool.hatch.envs.test.matrix]] | ||
python = ["39", "310", "311", "312"] | ||
python = [ "39", "310", "311", "312" ] | ||
|
||
[tool.autopep8] | ||
ignore = ["W503"] | ||
ignore = [ "W503" ] | ||
|
||
[tool.ruff] | ||
line-length = 79 | ||
target-version = "py39" | ||
|
||
select = [ | ||
"F", # pyflakes | ||
"E", "W", # pycodestyle | ||
"C90", # mccabe | ||
"N", # pep8-naming | ||
"S", # bandit | ||
"BLE", # flake8-blind-except | ||
"FBT", # flake8-boolean-trap | ||
"B", # flake8-bugbear | ||
"A", # flake8-builtins | ||
"C4", # flake8-comprehensions | ||
"DTZ", # flake8-datetimez | ||
"EM", # flake8-errmsg | ||
"ISC", # flake8-implicit-str-concat | ||
"ICN", # flake8-import-conventions | ||
"PIE", # flake8-pie | ||
"T20", # flake8-print | ||
"Q", # flake8-quotes | ||
"RET", # flake8-return | ||
"SIM", # flake8-simplify | ||
"PTH", # flake8-use-pathlib | ||
"ERA", # eradicate | ||
"PL", # pylint | ||
"TRY", # tryceratops | ||
"RUF", # ruff | ||
] | ||
|
||
|
||
[tool.ruff.mccabe] | ||
max-complexity = 10 | ||
line-length = 79 | ||
|
||
[tool.ruff.flake8-quotes] | ||
inline-quotes = "double" | ||
lint.select = [ | ||
"A", # flake8-builtins | ||
"B", # flake8-bugbear | ||
"BLE", # flake8-blind-except | ||
"C4", # flake8-comprehensions | ||
"C90", # mccabe | ||
"DTZ", # flake8-datetimez | ||
"E", | ||
"EM", # flake8-errmsg | ||
"ERA", # eradicate | ||
"F", # pyflakes | ||
"FBT", # flake8-boolean-trap | ||
"ICN", # flake8-import-conventions | ||
"ISC", # flake8-implicit-str-concat | ||
"N", # pep8-naming | ||
"PIE", # flake8-pie | ||
"PL", # pylint | ||
"PTH", # flake8-use-pathlib | ||
"Q", # flake8-quotes | ||
"RET", # flake8-return | ||
"RUF", # ruff | ||
"S", # bandit | ||
"SIM", # flake8-simplify | ||
"T20", # flake8-print | ||
"TRY", # tryceratops | ||
"W", # pycodestyle | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--tb=short --showlocals" | ||
|
||
[tool.coverage.run] | ||
plugins = ["covdefaults"] | ||
plugins = [ "covdefaults" ] | ||
|
||
[tool.mypy] | ||
python_version = 3.9 | ||
|
@@ -129,7 +122,7 @@ warn_redundant_casts = true | |
warn_unused_ignores = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = ["tests.*"] | ||
module = [ "tests.*" ] | ||
ignore_missing_imports = true | ||
check_untyped_defs = false | ||
disallow_incomplete_defs = false | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
extend ="../pyproject.toml" | ||
|
||
[lint] | ||
extend-select = [ | ||
"PT", # flake8-pytest-style | ||
] | ||
|
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