Skip to content

Commit 3cf204a

Browse files
authored
CI add end-of-file-fixer (#36826)
1 parent c5637a8 commit 3cf204a

20 files changed

+16
-18
lines changed

.github/CODE_OF_CONDUCT.md

-1
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ and the [Swift Code of Conduct][swift].
6060
[homepage]: https://www.contributor-covenant.org
6161
[version]: https://www.contributor-covenant.org/version/1/3/0/
6262
[swift]: https://swift.org/community/#code-of-conduct
63-

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ repos:
4747
rev: v1.2.2
4848
hooks:
4949
- id: yesqa
50+
- repo: https://github.com/pre-commit/pre-commit-hooks
51+
rev: v3.2.0
52+
hooks:
53+
- id: end-of-file-fixer
54+
exclude: '.html$|^LICENSES/|.csv$|.txt$|.svg$|.py$'

AUTHORS.md

-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ pandas is distributed under a 3-clause ("Simplified" or "New") BSD
5454
license. Parts of NumPy, SciPy, numpydoc, bottleneck, which all have
5555
BSD-compatible licenses, are included. Their licenses follow the pandas
5656
license.
57-

ci/travis_process_gbq_encryption.sh

-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ elif [[ -n ${!TRAVIS_IV_ENV} ]]; then
1010
export GBQ_PROJECT_ID='pandas-gbq-tests';
1111
echo 'Successfully decrypted gbq credentials'
1212
fi
13-

doc/data/iris.data

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ SepalLength,SepalWidth,PetalLength,PetalWidth,Name
148148
6.3,2.5,5.0,1.9,Iris-virginica
149149
6.5,3.0,5.2,2.0,Iris-virginica
150150
6.2,3.4,5.4,2.3,Iris-virginica
151-
5.9,3.0,5.1,1.8,Iris-virginica
151+
5.9,3.0,5.1,1.8,Iris-virginica

doc/source/development/contributing.rst

+3
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,9 @@ to run its checks by running::
837837

838838
without having to have done ``pre-commit install`` beforehand.
839839

840+
Note that if you have conflicting installations of ``virtualenv``, then you may get an
841+
error - see `here <https://github.com/pypa/virtualenv/issues/1875>`_.
842+
840843
Backwards compatibility
841844
~~~~~~~~~~~~~~~~~~~~~~~
842845

doc/source/development/developer.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ As an example of fully-formed metadata:
184184
'creator': {
185185
'library': 'pyarrow',
186186
'version': '0.13.0'
187-
}}
187+
}}

doc/source/getting_started/intro_tutorials/index.rst

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ Getting started tutorials
1919
08_combine_dataframes
2020
09_timeseries
2121
10_text_data
22-

doc/source/getting_started/overview.rst

-1
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,3 @@ License
174174
-------
175175

176176
.. literalinclude:: ../../../LICENSE
177-

doc/source/reference/general_utility_functions.rst

-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,3 @@ Bug report function
122122
:toctree: api/
123123

124124
show_versions
125-

doc/source/whatsnew/v0.14.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1084,4 +1084,4 @@ Bug fixes
10841084
Contributors
10851085
~~~~~~~~~~~~
10861086

1087-
.. contributors:: v0.13.1..v0.14.0
1087+
.. contributors:: v0.13.1..v0.14.0

flake8/cython-template.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[flake8]
22
filename = *.pxi.in
33
select = E501,E302,E203,E111,E114,E221,E303,E231,E126,F403
4-

pandas/_libs/src/klib/khash_python.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ void PANDAS_INLINE kh_destroy_str_starts(kh_str_starts_t* table) {
121121

122122
void PANDAS_INLINE kh_resize_str_starts(kh_str_starts_t* table, khint_t val) {
123123
kh_resize_str(table->table, val);
124-
}
124+
}

pandas/_libs/util.pxd

-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ cdef inline void set_array_not_contiguous(ndarray ao) nogil:
4848
# ao->flags &= ~(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS);
4949
PyArray_CLEARFLAGS(ao,
5050
(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS))
51-
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"A":{"2000-01-03T00:00:00":1.56808523,"2000-01-04T00:00:00":-0.2550111,"2000-01-05T00:00:00":1.51493992,"2000-01-06T00:00:00":-0.02765498,"2000-01-07T00:00:00":0.05951614},"B":{"2000-01-03T00:00:00":0.65727391,"2000-01-04T00:00:00":-0.08072427,"2000-01-05T00:00:00":0.11805825,"2000-01-06T00:00:00":0.44679743,"2000-01-07T00:00:00":-2.69652057},"C":{"2000-01-03T00:00:00":1.81021139,"2000-01-04T00:00:00":-0.03202878,"2000-01-05T00:00:00":1.629455,"2000-01-06T00:00:00":0.33192641,"2000-01-07T00:00:00":1.28163262},"D":{"2000-01-03T00:00:00":-0.17251653,"2000-01-04T00:00:00":-0.17581665,"2000-01-05T00:00:00":-1.31506612,"2000-01-06T00:00:00":-0.27885413,"2000-01-07T00:00:00":0.34703478},"date":{"2000-01-03T00:00:00":"1992-01-06T18:21:32.120000","2000-01-04T00:00:00":"1992-01-06T18:21:32.120000","2000-01-05T00:00:00":"1992-01-06T18:21:32.120000","2000-01-06T00:00:00":"2013-01-01T00:00:00","2000-01-07T00:00:00":"1992-01-06T18:21:32.120000"}}
1+
{"A":{"2000-01-03T00:00:00":1.56808523,"2000-01-04T00:00:00":-0.2550111,"2000-01-05T00:00:00":1.51493992,"2000-01-06T00:00:00":-0.02765498,"2000-01-07T00:00:00":0.05951614},"B":{"2000-01-03T00:00:00":0.65727391,"2000-01-04T00:00:00":-0.08072427,"2000-01-05T00:00:00":0.11805825,"2000-01-06T00:00:00":0.44679743,"2000-01-07T00:00:00":-2.69652057},"C":{"2000-01-03T00:00:00":1.81021139,"2000-01-04T00:00:00":-0.03202878,"2000-01-05T00:00:00":1.629455,"2000-01-06T00:00:00":0.33192641,"2000-01-07T00:00:00":1.28163262},"D":{"2000-01-03T00:00:00":-0.17251653,"2000-01-04T00:00:00":-0.17581665,"2000-01-05T00:00:00":-1.31506612,"2000-01-06T00:00:00":-0.27885413,"2000-01-07T00:00:00":0.34703478},"date":{"2000-01-03T00:00:00":"1992-01-06T18:21:32.120000","2000-01-04T00:00:00":"1992-01-06T18:21:32.120000","2000-01-05T00:00:00":"1992-01-06T18:21:32.120000","2000-01-06T00:00:00":"2013-01-01T00:00:00","2000-01-07T00:00:00":"1992-01-06T18:21:32.120000"}}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"A":{"946857600000000000":1.56808523,"946944000000000000":-0.2550111,"947030400000000000":1.51493992,"947116800000000000":-0.02765498,"947203200000000000":0.05951614},"B":{"946857600000000000":0.65727391,"946944000000000000":-0.08072427,"947030400000000000":0.11805825,"947116800000000000":0.44679743,"947203200000000000":-2.69652057},"C":{"946857600000000000":1.81021139,"946944000000000000":-0.03202878,"947030400000000000":1.629455,"947116800000000000":0.33192641,"947203200000000000":1.28163262},"D":{"946857600000000000":-0.17251653,"946944000000000000":-0.17581665,"947030400000000000":-1.31506612,"947116800000000000":-0.27885413,"947203200000000000":0.34703478},"date":{"946857600000000000":694722092120000000,"946944000000000000":694722092120000000,"947030400000000000":694722092120000000,"947116800000000000":1356998400000000000,"947203200000000000":694722092120000000},"modified":{"946857600000000000":694722092120000000,"946944000000000000":null,"947030400000000000":694722092120000000,"947116800000000000":1356998400000000000,"947203200000000000":694722092120000000}}
1+
{"A":{"946857600000000000":1.56808523,"946944000000000000":-0.2550111,"947030400000000000":1.51493992,"947116800000000000":-0.02765498,"947203200000000000":0.05951614},"B":{"946857600000000000":0.65727391,"946944000000000000":-0.08072427,"947030400000000000":0.11805825,"947116800000000000":0.44679743,"947203200000000000":-2.69652057},"C":{"946857600000000000":1.81021139,"946944000000000000":-0.03202878,"947030400000000000":1.629455,"947116800000000000":0.33192641,"947203200000000000":1.28163262},"D":{"946857600000000000":-0.17251653,"946944000000000000":-0.17581665,"947030400000000000":-1.31506612,"947116800000000000":-0.27885413,"947203200000000000":0.34703478},"date":{"946857600000000000":694722092120000000,"946944000000000000":694722092120000000,"947030400000000000":694722092120000000,"947116800000000000":1356998400000000000,"947203200000000000":694722092120000000},"modified":{"946857600000000000":694722092120000000,"946944000000000000":null,"947030400000000000":694722092120000000,"947116800000000000":1356998400000000000,"947203200000000000":694722092120000000}}

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ tabulate>=0.8.3
7979
natsort
8080
git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
8181
git+https://github.com/numpy/numpydoc
82-
pyflakes>=2.2.0
82+
pyflakes>=2.2.0

scripts/generate_pip_deps_from_conda.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def main(conda_fname, pip_fname, compare=False):
9494
f"# This file is auto-generated from {fname}, do not modify.\n"
9595
"# See that file for comments about the need/usage of each dependency.\n\n"
9696
)
97-
pip_content = header + "\n".join(pip_deps)
97+
pip_content = header + "\n".join(pip_deps) + "\n"
9898

9999
if compare:
100100
with open(pip_fname) as pip_fd:

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -288,4 +288,3 @@ check_untyped_defs=False
288288

289289
[mypy-pandas.util._decorators]
290290
check_untyped_defs=False
291-

web/pandas/community/coc.md

-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,3 @@ and the [Swift Code of Conduct][swift].
6363
[homepage]: https://www.contributor-covenant.org
6464
[version]: https://www.contributor-covenant.org/version/1/3/0/
6565
[swift]: https://swift.org/community/#code-of-conduct
66-

0 commit comments

Comments
 (0)