Open anuj-scanova opened 2 years ago
Does your code pass flake8 .
on the same python version?
@sobolevn
Python version used Python 3.9.11
when I run the command flake8 .
locally, there are few changes recommended without any error
user@aa30b05174d3:/app$ flake8 .
./authentication/tasks.py:6:1: F401 'dateutil.relativedelta.relativedelta' imported but unused
./authentication/tasks.py:13:1: F401 'authentication.emails.send_inactive_account_deletion_reminder' imported but unused
./authentication/tasks.py:13:1: F401 'authentication.emails.send_inactive_account_deletion_confirmation_mail' imported but unused
./authentication/tasks.py:299:121: E501 line too long (122 > 120 characters)
./authentication/tasks.py:300:121: E501 line too long (121 > 120 characters)
./qcg/settings/__init__.py:12:4: F405 'DEBUG' may be undefined, or defined from star imports: .base, .celery, .constants, .ecs, .logging, .mfa, .monitoring, .payment, .security, .testing
./qcg/settings/__init__.py:12:14: F405 'ENVIRONMENT' may be undefined, or defined from star imports: .base, .celery, .constants, .ecs, .logging, .mfa, .monitoring, .payment, .security, .testing
./scan_data_collect/tasks.py:91:29: F541 f-string is missing placeholders
./tracking/google_tracking2.py:1:1: F401 'json' imported but unused
Are you sure that there are no extra files in the CI?
@sobolevn I listed the files in the actions and here is the output
Run ls -la
total 26
drwxr-xr-x 11 runner docker 4096 Jul 20 15:27 .
drwxr-xr-x 3 runner docker 4096 Jul 20 15:27 ..
-rw-r--r-- 1 runner docker 149 Jul 20 15:27 .coveragerc
-rw-r--r-- 1 runner docker 24 Jul 20 15:27 .dockerignore
drwxr-xr-x 8 runner docker 406 Jul 20 15:27 .git
drwxr-xr-x 3 runner docker 4096 Jul 20 15:27 .github
-rw-r--r-- 1 runner docker 915 Jul 20 15:27 .gitignore
-rw-r--r-- 1 runner docker 4352 Jul 20 15:27 Dockerfile
-rw-r--r-- 1 runner docker 4340 Jul 20 15:27 Dockerfile.dev
-rw-r--r-- 1 runner docker 1373 Jul 20 15:27 Pipfile.bk
-rw-r--r-- 1 runner docker 135592 Jul 20 15:27 Pipfile.lock.bk
-rw-r--r-- 1 runner docker 750 Jul 20 15:27 appspec-qa.yml
-rw-r--r-- 1 runner docker 765 Jul 20 15:27 appspec-staging.yml
-rw-r--r-- 1 runner docker 671 Jul 20 15:27 appspec-v8.yml
-rw-r--r-- 1 runner docker 670 Jul 20 15:27 appspec.yml
-rw-r--r-- 1 runner docker 6908 Jul 20 15:27 bitbucket-pipelines.yml
-rw-r--r-- 1 runner docker 4180 Jul 20 15:27 codedeploy_deploy.py
drwxr-xr-x 6 runner docker 4096 Jul 20 15:27 configs
-rw-r--r-- 1 runner docker 2774 Jul 20 15:27 docker-compose.dev.yml
-rw-r--r-- 1 runner docker 1656 Jul 20 15:27 docker-compose.qa.yml
-rw-r--r-- 1 runner docker 2370 Jul 20 15:27 docker-compose.staging.yml
-rw-r--r-- 1 runner docker 1658 Jul 20 15:27 docker-compose.v8.yml
-rw-r--r-- 1 runner docker 3217 Jul 20 15:27 docker-compose.yml
drwxr-xr-x 3 runner docker 4096 Jul 20 15:27 docs
drwxr-xr-x 3 runner docker 4096 Jul 20 15:27 library_data
-rw-r--r-- 1 runner docker 989 Jul 20 15:27 pytest.ini
-rw-r--r-- 1 runner docker 2331 Jul 20 15:27 readme.md
drwxr-xr-x 2 runner docker 4096 Jul 20 15:27 requirements
drwxr-xr-x 6 runner docker 4096 Jul 20 15:27 scripts
drwxr-xr-x 29 runner docker 4096 Jul 20 15:27 src
drwxr-xr-x 2 runner docker 4096 Jul 20 15:27 static_my_project
-rwxr-xr-x 1 runner docker 49 Jul 20 15:27 update_ecs_service.sh
And I have to check the src
directory.
Also, the python version in actions is 3.9.13
Also, there is .flake8
file inside the src
directory with the following content
[flake8]
exclude = .git,*migrations*,*tests*,*src/migration/*
max-line-length = 120
Can you please create a reproducable sample?
What's wrong
Produces error in actions
Also, the actions are passing successfully despite the error.
How it should be
The pipeline should run successfully and the action should fail in case of error.
Flake8 version and plugins
actions.py
pip information
Python 3.9
OS information
ubuntu-latest