7 Commits

Author SHA1 Message Date
Anthony Sottile
1cad38d632 Merge pull request #167 from asottile/all-repos_autofix_systemexit-main
replace exit(main()) with raise SystemExit(main())
2021-10-23 11:00:46 -07:00
Anthony Sottile
d2a7014925 replace exit(main()) with raise SystemExit(main())
Committed via https://github.com/asottile/all-repos
2021-10-23 13:22:47 -04:00
Anthony Sottile
9eae3da253 Merge pull request #166 from asottile/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-11 13:54:46 -07:00
pre-commit-ci[bot]
075338563e [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-10-11 20:29:12 +00:00
pre-commit-ci[bot]
a7e83ef089 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1)
- [github.com/asottile/setup-cfg-fmt: v1.17.0 → v1.18.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.17.0...v1.18.0)
- [github.com/pre-commit/mirrors-mypy: v0.910 → v0.910-1](https://github.com/pre-commit/mirrors-mypy/compare/v0.910...v0.910-1)
2021-10-11 20:24:11 +00:00
Anthony Sottile
03656c04bb Merge pull request #165 from asottile/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-04 13:28:38 -07:00
pre-commit-ci[bot]
4be3cbff35 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0)
2021-10-04 20:19:23 +00:00
5 changed files with 8 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ repos:
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]
@@ -30,15 +30,15 @@ repos:
- id: add-trailing-comma
args: [--py36-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v2.28.0
rev: v2.29.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.17.0
rev: v1.18.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
rev: v0.910-1
hooks:
- id: mypy

View File

@@ -3,4 +3,4 @@ from __future__ import annotations
from babi.main import main
if __name__ == '__main__':
exit(main())
raise SystemExit(main())

View File

@@ -152,4 +152,4 @@ def main(argv: Sequence[str] | None = None) -> int:
if __name__ == '__main__':
exit(main())
raise SystemExit(main())

View File

@@ -67,4 +67,4 @@ def main(argv: Sequence[str] | None = None) -> int:
if __name__ == '__main__':
exit(main())
raise SystemExit(main())

View File

@@ -16,6 +16,7 @@ classifiers =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy