summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Kislyuk <kislyuk@gmail.com>2023-04-03 19:44:17 -0700
committerAndrey Kislyuk <kislyuk@gmail.com>2023-04-03 19:44:17 -0700
commitfb92fe495fb3f5fe3dbbe51dd24297d1ef3caaca (patch)
treede0eab6e76f4ddc5945ce55ce152e715b5ab5e46
parent061a768a3e1dc21b9fbca272cf8746ba9925c546 (diff)
Use ruff instead of flake8
-rw-r--r--Makefile2
-rw-r--r--pyproject.toml8
-rw-r--r--setup.cfg7
-rwxr-xr-xsetup.py4
4 files changed, 10 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 1293536..1b3e98f 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/setup.py b/setup.py
index 9de217e..ac26370 100755
--- a/setup.py
+++ b/setup.py
@@ -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",
],
)