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: Stop using pytest-flake8 and add ruff config #353

Merged
merged 15 commits into from Jul 6, 2023
Merged

Conversation

timj
Copy link
Member

@timj timj commented Jul 5, 2023

Checklist

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

@timj timj requested a review from andy-slac July 5, 2023 20:37
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Patch coverage: 92.85% and project coverage change: -0.01 ⚠️

Comparison is base (e167ea5) 82.74% compared to head (590180b) 82.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #353      +/-   ##
==========================================
- Coverage   82.74%   82.74%   -0.01%     
==========================================
  Files          66       66              
  Lines        7281     7269      -12     
  Branches     1418     1418              
==========================================
- Hits         6025     6015      -10     
+ Misses       1007     1006       -1     
+ Partials      249      248       -1     
Impacted Files Coverage Δ
python/lsst/pipe/base/_task_metadata.py 96.63% <ø> (ø)
python/lsst/pipe/base/config.py 70.12% <ø> (ø)
python/lsst/pipe/base/connections.py 78.14% <ø> (ø)
python/lsst/pipe/base/graph/quantumNode.py 86.15% <ø> (ø)
python/lsst/pipe/base/pipelineTask.py 100.00% <ø> (ø)
...ython/lsst/pipe/base/tests/mocks/_pipeline_task.py 34.54% <ø> (ø)
...ython/lsst/pipe/base/tests/mocks/_storage_class.py 51.38% <ø> (ø)
python/lsst/pipe/base/tests/simpleQGraph.py 71.42% <ø> (ø)
tests/test_cliCmdRegisterInstrument.py 100.00% <ø> (ø)
tests/test_connections.py 99.03% <ø> (-0.01%) ⬇️
... and 20 more

... and 1 file with indirect coverage changes

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

Copy link
Contributor

@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.

.pre-commit-config.yaml Show resolved Hide resolved
doc/conf.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/_quantumContext.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/graph/quantumNode.py Outdated Show resolved Hide resolved
python/lsst/pipe/base/pipelineIR.py Show resolved Hide resolved
tests/test_cliCmdRegisterInstrument.py Outdated Show resolved Hide resolved
tests/test_pipelineTask.py Outdated Show resolved Hide resolved
timj and others added 14 commits July 5, 2023 15:45
ruff seems to be getting confused and is insisting that __len__
and __iter__ are class methods and so should not use "self".
Neither ruff nor pydocstyle understand that "parameters:" in
a code-block in a docstring is not in fact a numpydoc Parameters
directive that has gone wrong. Fool them both by adding a unicode
zero-width space into the text.
Co-authored-by: Andy Salnikov <salnikov@slac.stanford.edu>
Fixes about 200 errors in nitpick mode.
@timj timj merged commit 566bdaa into main Jul 6, 2023
11 of 12 checks passed
@timj timj deleted the tickets/DM-39857 branch July 6, 2023 01:27
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