[AIRFLOW-6864] Make airflow/jobs pylint compatible#7484
[AIRFLOW-6864] Make airflow/jobs pylint compatible#7484turbaszek merged 1 commit intoapache:masterfrom
Conversation
|
Depends on #7482 |
fadbf43 to
e536fab
Compare
cc5ca91 to
84bf211
Compare
84bf211 to
6230baf
Compare
6230baf to
c0582aa
Compare
|
We currently have "airlfow/utils/state.py" which contains constants, so we can also create a new file that contains other enums/types/constants. |
airflow/jobs/backfill_job.py
Outdated
There was a problem hiding this comment.
Do we need these constants? Maybe it would be better to use the DagRunType directly?
There was a problem hiding this comment.
I am happy to do this in other PR.
There was a problem hiding this comment.
I will leave it for other PR. It's not strictly related to this PR.
|
Good spot Kamil! |
9360697 to
9b4c356
Compare
|
There are merge conflicts |
ca317e3 to
0027102
Compare
|
@nuclearpinguin See https://github.com/apache/airflow/pull/7527/files#r383812108 -- this is my only outstanding query about this PR. |
This PR runs pylint over |
fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible
0027102 to
19ae57d
Compare
I assume that the difference is that here @declared_attr
def state(self):
return synonym('_state',
descriptor=property(self.get_state, self.set_state)) |
|
Ah, because we have ignored that file (or mostly ignored it) it's not yet showing up in Pylint. SQLA DelcarativeModels does funny things with the classes/instances that pylint can't detect. I guess it's unavoidable, and we will have to ignore those few lines. I think pylint-dev/pylint#3334 is the same issue we have (open, no feedback). |
fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible fixup! [AIRFLOW-6864] Make airfow/jobs pylint compatible
This PR makes
airflow/jobspylint compatible and removes the cyclic dependency created by importing BackfillJob to accessBackfillJob.ID_PREFIXIssue link: AIRFLOW-6864
Make sure to mark the boxes below before creating PR: [x]
[AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID** For document-only changes commit message can start with
[AIRFLOW-XXXX].In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.