@@ -139,8 +139,6 @@ help-table() {
139139 printf " $column " ' generate-module-wizard' ' [path][model]' ' Generate wizard for a model in module folder.'
140140 printf " $column " ' generate-module-repo' ' [path]' ' Initialize Odoo module repo from template.'
141141 print_group_header ' Module'
142- printf " $column " ' lint-module' ' [path]' ' Run pylint odoo for module.'
143- printf " $column " ' lint-module-repo' ' [path]' ' Run pylint odoo for modules in repo folder.'
144142 printf " $column " ' list-modules' ' [path]' ' Get modules in path as bash array.'
145143 printf " $column " ' pytest-module' ' [path]' ' Run module tests with pytest.'
146144 printf " $column " ' release-module' ' [path]' ' Create GitHub release for a module.'
@@ -1855,19 +1853,6 @@ generate-module-repo() {
18551853 cp " templates/$ODOO_VERSION /*" " $repo_path "
18561854}
18571855
1858- lint-module-repo () {
1859- if [[ -z " $1 " ]]; then
1860- echo ' $1 is empty.'
1861- exit
1862- fi
1863-
1864- local module_paths=$( get-modules " $MODULE_PATH " )
1865-
1866- for module_path in ${module_paths// ,/ } ; do
1867- lint-module " $module_path "
1868- done
1869- }
1870-
18711856# Module commands
18721857
18731858init-module () {
@@ -1959,31 +1944,6 @@ translate-module() {
19591944 fi
19601945}
19611946
1962- lint-module () {
1963- if [[ -z " $1 " ]]; then
1964- echo ' $1 is empty.'
1965- exit
1966- fi
1967-
1968- echo " Set file and folder permissions on $1 "
1969- find " $1 " -type d -exec chmod u=rwx,go=rx {} \;
1970- find " $1 " -type f -exec chmod u=rw,go=r {} \;
1971-
1972- echo ' Update index.html'
1973- rst2html5 " $1 /README.rst" " $1 /static/description/index.html"
1974-
1975- pushd .
1976- cd " $1 "
1977-
1978- echo " Run pre-commit in $PWD "
1979- pre-commit run --all-files # --show-diff-on-failure --color=always
1980-
1981- echo ' Stage changes'
1982- git add .
1983-
1984- popd
1985- }
1986-
19871947test-module () {
19881948 if [[ -z " $1 " ]]; then
19891949 echo ' $1 is empty.'
0 commit comments