Skip to content

Commit

Permalink
Merge pull request #3 from ioannis-vm/test_branch
Browse files Browse the repository at this point in the history
Add very long line
  • Loading branch information
ioannis-vm authored Jun 22, 2024
2 parents a5479ef + 4eee162 commit d1a2478
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/format_and_lint_pr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Format and lint code
name: Lint code
on:
pull_request:
permissions:
Expand All @@ -15,5 +15,11 @@ jobs:
python-version: '3.x'
- name: Run Black
uses: psf/black@stable
with:
options: "--check --diff -S"
- name: Install Flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Run Flake8
run: flake8 .
64 changes: 64 additions & 0 deletions pelicun/tests/code_repetition_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,70 @@ def all_test_files():
runs the main function to find and print repeated line blocks in each file.
"""
test_files = glob('tests/*.py')
very_long_line = [
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
1.00,
2.00,
3.00,
4.00,
5.00,
6.00,
]
very_long_string = (
'some very long thing which is some very '
'long thing which is some very long thing '
'which is some very long thing which is '
'some very long thing which is some very '
'long thing which is some very long thing '
'which is some very long thing which is '
'some very long thing which is some very '
'long thing which is some very long thing '
'which is some very long thing which is '
'very long indeed.'
)
assert very_long_line is not None
assert very_long_string is not None
for file in test_files:
print()
print(file)
Expand Down

0 comments on commit d1a2478

Please sign in to comment.