diff options
author | Andrey Kislyuk <kislyuk@gmail.com> | 2023-04-03 19:44:17 -0700 |
---|---|---|
committer | Andrey Kislyuk <kislyuk@gmail.com> | 2023-04-03 19:44:17 -0700 |
commit | fb92fe495fb3f5fe3dbbe51dd24297d1ef3caaca (patch) | |
tree | de0eab6e76f4ddc5945ce55ce152e715b5ab5e46 | |
parent | 061a768a3e1dc21b9fbca272cf8746ba9925c546 (diff) |
Use ruff instead of flake8
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | pyproject.toml | 8 | ||||
-rw-r--r-- | setup.cfg | 7 | ||||
-rwxr-xr-x | setup.py | 4 |
4 files changed, 10 insertions, 11 deletions
@@ -1,7 +1,7 @@ SHELL=/bin/bash lint: - flake8 + ruff $$(dirname */__init__.py) mypy --install-types --non-interactive --check-untyped-defs $$(dirname */__init__.py) test: diff --git a/pyproject.toml b/pyproject.toml index 9ee3daf..c89a30c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,15 @@ [tool.black] line-length = 120 + [tool.isort] profile = "black" line_length = 120 skip_gitignore = true + +[tool.ruff] +line-length = 120 +per-file-ignores = {"yq/__init__.py" = ["F401"]} + [[tool.mypy.overrides]] module = "argcomplete.*" -ignore_missing_imports = true
\ No newline at end of file +ignore_missing_imports = true diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2c6f84f..0000000 --- a/setup.cfg +++ /dev/null @@ -1,7 +0,0 @@ -[metadata] -license_file = LICENSE -[flake8] -max-line-length=120 -extend-ignore=E203 -per-file-ignores= - yq/__init__.py:F401 @@ -25,9 +25,9 @@ setup( extras_require={ "tests": [ "coverage", - "flake8", "wheel", "build", + "ruff", "mypy", ] }, @@ -44,11 +44,11 @@ setup( "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Software Development :: Libraries :: Python Modules", ], ) |