-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix #329: fmt.diff checks same paths as ci._check_files #332
Conversation
Correct. We don't want to enforce standards on non-standard directories. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking for bugs in black.
How should fmt run handle this? It seems like if fmt run is called from the command line we need to check each path that it receives and run it through ci._paths()? |
|
Then should we add a new command to ci to replace our widespread use of |
Not sure what you mean. Developers can still make sure the whole repo is formatted. I'm not sure it is very widespread. For example, I never use Perhaps I'm misunderstanding. |
This comment made me think you wanted some kind of change to the way fmt run currently works |
Ah, no. fmt enforces standards, of course. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job sticking with the updates! Thanks.
The problem I mentioned in today's meeting was in fact a bug that was fixed in version 22.12.0, and we only required >=22.0 (I was running 22.6.0.)
This update is enforcing new requirements, hence the change to pykern/pkcli/github.py and pykern/xlsx.py.
rshellweg passes ci format checks on my machine with these changes, but running
pykern fmt run .
will change files thatpykern ci run
does not diff. (Runningpykern fmt run .
in rshellweg will format those example files that were failingpykern ci run
). Do we wantpykern fmt run .
to only run on<pkg>
,tests
,setup.py
when run from the repo root?