STYLE: moving spacing conventions in cython casting to pre-commit
- [X] closes #42121 
- [ ] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry

This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. > This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this.

Working are you sure? looks like there's still lot's of failures https://github.com/pandas-dev/pandas/pull/42186/checks?check_run_id=3164816180 Sorry for the late reply, I think it's because the check is working on .rst files as well according to the include statement in the .yaml file:

https://github.com/pandas-dev/pandas/blob/2f49b8d32dc579358c63341730854f856ceb4315/.pre-commit-config.yaml#L96-L108

What should we do? separate this check with another id for only cython files? Ah yes, you're right. Then yes, just make another hook and only run it on `.pyx` and `.pxi.in` files in `pandas/_libs`  > sorry, forgot this last time, we should also remove 'lint' from this file (there's a few places where it crops up)
> 
> https://github.com/pandas-dev/pandas/blob/4f0e2e9712dd06d3e445c5777fd979c21cd84c02/ci/code_checks.sh#L13

Made the changes, should be good to go oops, CI checks are failing, there's still 

https://github.com/pandas-dev/pandas/blob/4f0e2e9712dd06d3e445c5777fd979c21cd84c02/.github/workflows/ci.yml#L51-L53

(after that, should be good to go!) Need to make changes in [docs](https://github.com/01-vyom/pandas/blob/pandas-42121/doc/source/development/contributing_codebase.rst#code-standards) as well. There are also docs for pattern matching, but it has been moved so should I change it as well?

[Doc1](https://github.com/01-vyom/pandas/blob/pandas-42121/doc/source/development/contributing_codebase.rst#code-standards)

Doc2: 

https://github.com/pandas-dev/pandas/blob/4f0e2e9712dd06d3e445c5777fd979c21cd84c02/ci/code_checks.sh#L5-L9
 Thanks for spotting that - yeah, sure!