Skip to content

Commit 71baa74

Browse files
committed
refactor(task): remove lint-module and lint-module-repo commands from task script and changelog
1 parent ba00c7e commit 71baa74

2 files changed

Lines changed: 1 addition & 40 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file. The format
1919
- reset-git-folder
2020
- stage-git-folder
2121
- status-git-folder
22+
- Removed `lint-module` and `lint-module-repo` commands from help table and implementation.
2223

2324
### Added
2425

task

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -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

18731858
init-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-
19871947
test-module() {
19881948
if [[ -z "$1" ]]; then
19891949
echo '$1 is empty.'

0 commit comments

Comments
 (0)