Skip to content

Commit

Permalink
Merge branch 'master' into fix_makefile_copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 21, 2024
2 parents 5821060 + 2f1c4c9 commit 02b345e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
5 changes: 4 additions & 1 deletion installs/install-texlive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ set -o pipefail
set -x

if ! "${LOCAL}/help/texlive-bin.sh"; then
wget --quiet http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip
if [ ! -f "install-tl.zip" ]; then
wget --quiet http://mirror.ctan.org/systems/texlive/tlnet/install-tl.zip
fi
rm -rf install-tl
unzip install-tl.zip -d install-tl
name=$(find install-tl/ -type d -name "install-tl-*" -exec basename {} \;)
perl "./install-tl/${name}/install-tl" --scheme=scheme-medium --no-interaction
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
javalang==0.13.0
flake8==7.0.0
pylint==3.2.1
pylint==3.2.2
multimetric==1.3.0
chardet==5.2.0
mypy==1.10.0
Expand Down
6 changes: 0 additions & 6 deletions steps/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,13 @@ bibcop tex/report.bib
find "${LOCAL}" -name '*.sh' -type f -print0 | xargs -0 -n1 shellcheck --shell=bash --severity=style

header="Copyright (c) 2021-$(date +%Y) Yegor Bugayenko"

copyright_check="false"

# Iterate over each file in the directory recursively
while IFS= read -r file; do
# Search for the pattern in the file
if ! grep -q "$header" "$file"; then
copyright_check="true"
echo "⚠️ Copyright not found in file: $file"
fi
# avoid test-zone and unparseable folders
done < <(find "$LOCAL" \( -path "$LOCAL/fixtures/filters/unparseable" -prune \) -o \( -path "$LOCAL/test-zone" -prune \) -o -type f \( -name "*.sh" -o -name "*.py" -o -name "*.rb" -o -name "*.java" -o -name "*.xml" -o -name "Makefile" \) -print)

if [[ "${copyright_check}" = "true" ]]; then
exit 1
fi

0 comments on commit 02b345e

Please sign in to comment.