aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-10-29 19:42:10 +0200
committerGitHub <noreply@github.com>2022-10-29 10:42:10 -0700
commit1d625a3cf794f49661af3f0d7cdb80c11d35c807 (patch)
tree24a30f222bdbfe364984bc82002796345a1662ca
parent6884f017b53369d6c9b06ddd3aedeb642dbd24a8 (diff)
downloadrneovim-1d625a3cf794f49661af3f0d7cdb80c11d35c807.tar.gz
rneovim-1d625a3cf794f49661af3f0d7cdb80c11d35c807.tar.bz2
rneovim-1d625a3cf794f49661af3f0d7cdb80c11d35c807.zip
build: remove python linting #20851
This includes both the `lintpy` make target and for CI. We're actively trying to reduce our python usage, so this only seems to give warnings for unimportant things such as exceeding the line after deleting python code.
-rw-r--r--.github/workflows/ci.yml5
-rw-r--r--.github/workflows/codeql-analysis.yml2
-rw-r--r--CMakeLists.txt11
-rw-r--r--Makefile4
4 files changed, 4 insertions, 18 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7ada4f3f9e..08eeb614fc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,7 +38,6 @@ jobs:
automake \
build-essential \
cmake \
- flake8 \
gettext \
libluajit-5.1-dev \
libmsgpack-dev \
@@ -107,10 +106,6 @@ jobs:
run: make lintlua
- if: "!cancelled()"
- name: lintpy
- run: make lintpy
-
- - if: "!cancelled()"
name: lintsh
run: make lintsh
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index d0f04553f2..6ba0d43fe0 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- language: [ 'cpp', 'python' ]
+ language: [ 'cpp' ]
steps:
- name: Checkout repository
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 34eed2826b..e721402613 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -608,7 +608,6 @@ endif()
#
find_program(LUACHECK_PRG luacheck)
find_program(STYLUA_PRG stylua)
-find_program(FLAKE8_PRG flake8)
find_program(UNCRUSTIFY_PRG uncrustify)
find_program(SHELLCHECK_PRG shellcheck)
@@ -635,14 +634,6 @@ add_custom_target(lintlua)
add_dependencies(lintlua lintlua-luacheck lintlua-stylua)
include(InstallHelpers)
-add_glob_targets(
- TARGET lintpy
- COMMAND ${FLAKE8_PRG}
- FLAGS --max-line-length 100
- GLOB_DIRS contrib scripts src test
- GLOB_PAT *.py
- TOUCH_STRATEGY SINGLE
- )
add_glob_targets(
TARGET lintsh
@@ -658,7 +649,7 @@ add_custom_target(lintcommit
add_dependencies(lintcommit nvim)
add_custom_target(lint)
-add_dependencies(lint check-single-includes lintc lintlua lintpy lintsh lintcommit lintuncrustify)
+add_dependencies(lint check-single-includes lintc lintlua lintsh lintcommit lintuncrustify)
#
# Format
diff --git a/Makefile b/Makefile
index 7fb6139c51..03a0512ad7 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@ src/nvim/testdir/%.vim: phony_force
functionaltest functionaltest-lua unittest benchmark: | nvim
$(BUILD_TOOL) -C build $@
-lintlua lintsh lintpy lintuncrustify lintc lintcfull check-single-includes generated-sources lintcommit lint formatc formatlua format: | build/.ran-cmake
+lintlua lintsh lintuncrustify lintc lintcfull check-single-includes generated-sources lintcommit lint formatc formatlua format: | build/.ran-cmake
$(CMAKE_PRG) --build build --target $@
test: functionaltest unittest
@@ -166,4 +166,4 @@ $(DEPS_BUILD_DIR)/%: phony_force
$(BUILD_TOOL) -C $(DEPS_BUILD_DIR) $(patsubst $(DEPS_BUILD_DIR)/%,%,$@)
endif
-.PHONY: test lintlua lintpy lintsh functionaltest unittest lint lintc clean distclean nvim libnvim cmake deps install appimage checkprefix lintcommit formatc formatlua format
+.PHONY: test lintlua lintsh functionaltest unittest lint lintc clean distclean nvim libnvim cmake deps install appimage checkprefix lintcommit formatc formatlua format