Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing annotations: rule.py #6516

Merged
merged 4 commits into from Mar 7, 2024
Merged

Conversation

rdimaio
Copy link
Contributor

@rdimaio rdimaio commented Feb 27, 2024

Adding type annotations to rule.py and some correlated type annotations to rule_grouping.py. Part of #6454.

Tests pass locally.

lib/rucio/core/rule.py Outdated Show resolved Hide resolved
@rdimaio rdimaio force-pushed the patch-6454-type-rule branch 3 times, most recently from 8cd2358 to 511512c Compare February 29, 2024 12:34
@rdimaio rdimaio marked this pull request as draft March 5, 2024 14:12
@rdimaio rdimaio marked this pull request as ready for review March 5, 2024 14:17
@bari12
Copy link
Member

bari12 commented Mar 7, 2024

I am squashing the commits together.

@bari12 bari12 merged commit 7531ef8 into rucio:master Mar 7, 2024
27 of 28 checks passed
@rdimaio
Copy link
Contributor Author

rdimaio commented Mar 7, 2024

I am squashing the commits together.

I would keep them separate - I split them on purpose in that way to avoid having non-behavioural and behavioural changes in the same commit, following the guidelines of what I was asked to do for other PRs e.g. #6497

Copy link
Contributor

@dchristidis dchristidis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’m submitting part of my review so that you can start working while I finish the rest of it.

lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
@rdimaio rdimaio restored the patch-6454-type-rule branch March 13, 2024 13:31
Copy link
Contributor

@dchristidis dchristidis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is all my comments for rule.py. Some may apply also to rule_grouping.py

lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
lib/rucio/core/rule.py Show resolved Hide resolved
@rdimaio rdimaio deleted the patch-6454-type-rule branch March 13, 2024 14:58
rdimaio added a commit to rdimaio/rucio that referenced this pull request Mar 18, 2024
Fixing the "NOT FOR 34.0.0rc2" comments
from rucio#6516.
@rdimaio
Copy link
Contributor Author

rdimaio commented Mar 18, 2024

Follow-up for the "NOT FOR 34.0.0rc2" comments: #6575

bari12 pushed a commit that referenced this pull request Mar 19, 2024
Fixing the "NOT FOR 34.0.0rc2" comments
from #6516.
bari12 pushed a commit that referenced this pull request Mar 19, 2024
Fixing the "NOT FOR 34.0.0rc2" comments
from #6516.
voetberg pushed a commit to voetberg/rucio that referenced this pull request Mar 21, 2024
* Rules: remove unnecessary arguments in __find_surplus_locks_and_remove_them

* Rules: add type hints; rucio#6454

* Rules: update query to SQLAlchemy 2.0 syntax; rucio#6057

* Rules: Add RuleDict typed dict; rucio#6454
voetberg pushed a commit to voetberg/rucio that referenced this pull request Apr 15, 2024
* Rules: remove unnecessary arguments in __find_surplus_locks_and_remove_them

* Rules: add type hints; rucio#6454

* Rules: update query to SQLAlchemy 2.0 syntax; rucio#6057

* Rules: Add RuleDict typed dict; rucio#6454
voetberg pushed a commit to voetberg/rucio that referenced this pull request Apr 15, 2024
Fixing the "NOT FOR 34.0.0rc2" comments
from rucio#6516.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants