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

DM-39857: Remove --flake8 option and add ruff config #250

Merged
merged 13 commits into from Jul 5, 2023
Merged

Conversation

timj
Copy link
Member

@timj timj commented Jul 3, 2023

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Patch coverage: 75.00% and project coverage change: -0.03 ⚠️

Comparison is base (9629199) 85.57% compared to head (47fe323) 85.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #250      +/-   ##
==========================================
- Coverage   85.57%   85.55%   -0.03%     
==========================================
  Files          47       47              
  Lines        4251     4244       -7     
  Branches      732      732              
==========================================
- Hits         3638     3631       -7     
  Misses        459      459              
  Partials      154      154              
Impacted Files Coverage Δ
python/lsst/ctrl/mpexec/cli/opt/options.py 87.32% <ø> (ø)
python/lsst/ctrl/mpexec/executionGraphFixup.py 100.00% <ø> (ø)
...ython/lsst/ctrl/mpexec/simple_pipeline_executor.py 91.22% <ø> (ø)
python/lsst/ctrl/mpexec/util.py 40.00% <0.00%> (ø)
tests/test_cliCmdPurge.py 100.00% <ø> (ø)
tests/test_cliCmdUpdateGraphRun.py 100.00% <ø> (ø)
tests/test_cliScript.py 100.00% <ø> (ø)
tests/test_cliUtils.py 100.00% <ø> (ø)
tests/test_cmdLineFwk.py 98.34% <ø> (-0.01%) ⬇️
tests/test_dotTools.py 100.00% <ø> (ø)
... and 10 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@timj timj requested a review from andy-slac July 3, 2023 19:17
Copy link
Collaborator

@andy-slac andy-slac left a comment

Choose a reason for hiding this comment

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

Looks good, few minor comments.

Comment on lines 313 to 323
`config`, `config=[Task::]<PATTERN>` or
`config=[Task::]<PATTERN>:NOIGNORECASE` to dump configuration
``config``, ``config=[Task::]<PATTERN>`` or
``config=[Task::]<PATTERN>:NOIGNORECASE`` to dump configuration
fields possibly matching given pattern and/or task label;
`history=<FIELD>` to dump configuration history for a field, field
name is specified as [Task::]<PATTERN>; `dump-config`,
`dump-config=Task` to dump complete configuration for a task given
its label or all tasks; `pipeline` to show pipeline composition;
`graph` to show information about quanta; `workflow` to show
information about quanta and their dependency; `tasks` to show
task composition; `uri` to show predicted dataset URIs of
quanta"""
``history=<FIELD>`` to dump configuration history for a field,
field name is specified as ``[Task::]<PATTERN>;`` ``dump-config``,
``dump-config=Task`` to dump complete configuration for a task
given its label or all tasks; ``pipeline`` to show pipeline
composition; ``graph`` to show information about quanta;
``workflow`` to show information about quanta and their
dependency; ``tasks`` to show task composition; ``uri`` to show
predicted dataset URIs of quanta"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe de-indent the whole thing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I was trying to work out why it was all like this and failing 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that it was initially indented to an opening ( but then black wrapped the initial line but did not de-indent other lines.

python/lsst/ctrl/mpexec/cli/opt/options.py Outdated Show resolved Hide resolved
python/lsst/ctrl/mpexec/cli/opt/options.py Outdated Show resolved Hide resolved
tests/test_executors.py Outdated Show resolved Hide resolved
tests/test_taskFactory.py Outdated Show resolved Hide resolved
@timj timj merged commit 3a50dcc into main Jul 5, 2023
10 of 12 checks passed
@timj timj deleted the tickets/DM-39857 branch July 5, 2023 14:56
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

2 participants