Skip to content

Commit

Permalink
CI add end-of-file-fixer (pandas-dev#36826)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli authored Oct 6, 2020
1 parent c5637a8 commit 3cf204a
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ and the [Swift Code of Conduct][swift].
[homepage]: https://www.contributor-covenant.org
[version]: https://www.contributor-covenant.org/version/1/3/0/
[swift]: https://swift.org/community/#code-of-conduct

5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ repos:
rev: v1.2.2
hooks:
- id: yesqa
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: end-of-file-fixer
exclude: '.html$|^LICENSES/|.csv$|.txt$|.svg$|.py$'
1 change: 0 additions & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ pandas is distributed under a 3-clause ("Simplified" or "New") BSD
license. Parts of NumPy, SciPy, numpydoc, bottleneck, which all have
BSD-compatible licenses, are included. Their licenses follow the pandas
license.

1 change: 0 additions & 1 deletion ci/travis_process_gbq_encryption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ elif [[ -n ${!TRAVIS_IV_ENV} ]]; then
export GBQ_PROJECT_ID='pandas-gbq-tests';
echo 'Successfully decrypted gbq credentials'
fi

2 changes: 1 addition & 1 deletion doc/data/iris.data
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ SepalLength,SepalWidth,PetalLength,PetalWidth,Name
6.3,2.5,5.0,1.9,Iris-virginica
6.5,3.0,5.2,2.0,Iris-virginica
6.2,3.4,5.4,2.3,Iris-virginica
5.9,3.0,5.1,1.8,Iris-virginica
5.9,3.0,5.1,1.8,Iris-virginica
3 changes: 3 additions & 0 deletions doc/source/development/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,9 @@ to run its checks by running::

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

Note that if you have conflicting installations of ``virtualenv``, then you may get an
error - see `here <https://github.com/pypa/virtualenv/issues/1875>`_.

Backwards compatibility
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion doc/source/development/developer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ As an example of fully-formed metadata:
'creator': {
'library': 'pyarrow',
'version': '0.13.0'
}}
}}
1 change: 0 additions & 1 deletion doc/source/getting_started/intro_tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ Getting started tutorials
08_combine_dataframes
09_timeseries
10_text_data

1 change: 0 additions & 1 deletion doc/source/getting_started/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,3 @@ License
-------

.. literalinclude:: ../../../LICENSE

1 change: 0 additions & 1 deletion doc/source/reference/general_utility_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,3 @@ Bug report function
:toctree: api/

show_versions

2 changes: 1 addition & 1 deletion doc/source/whatsnew/v0.14.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1084,4 +1084,4 @@ Bug fixes
Contributors
~~~~~~~~~~~~

.. contributors:: v0.13.1..v0.14.0
.. contributors:: v0.13.1..v0.14.0
1 change: 0 additions & 1 deletion flake8/cython-template.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[flake8]
filename = *.pxi.in
select = E501,E302,E203,E111,E114,E221,E303,E231,E126,F403

2 changes: 1 addition & 1 deletion pandas/_libs/src/klib/khash_python.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ void PANDAS_INLINE kh_destroy_str_starts(kh_str_starts_t* table) {

void PANDAS_INLINE kh_resize_str_starts(kh_str_starts_t* table, khint_t val) {
kh_resize_str(table->table, val);
}
}
1 change: 0 additions & 1 deletion pandas/_libs/util.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ cdef inline void set_array_not_contiguous(ndarray ao) nogil:
# ao->flags &= ~(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS);
PyArray_CLEARFLAGS(ao,
(NPY_ARRAY_C_CONTIGUOUS | NPY_ARRAY_F_CONTIGUOUS))

2 changes: 1 addition & 1 deletion pandas/tests/io/json/data/tsframe_iso_v012.json
Original file line number Diff line number Diff line change
@@ -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"}}
{"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"}}
2 changes: 1 addition & 1 deletion pandas/tests/io/json/data/tsframe_v012.json
Original file line number Diff line number Diff line change
@@ -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}}
{"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}}
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ tabulate>=0.8.3
natsort
git+https://github.com/pandas-dev/pydata-sphinx-theme.git@master
git+https://github.com/numpy/numpydoc
pyflakes>=2.2.0
pyflakes>=2.2.0
2 changes: 1 addition & 1 deletion scripts/generate_pip_deps_from_conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def main(conda_fname, pip_fname, compare=False):
f"# This file is auto-generated from {fname}, do not modify.\n"
"# See that file for comments about the need/usage of each dependency.\n\n"
)
pip_content = header + "\n".join(pip_deps)
pip_content = header + "\n".join(pip_deps) + "\n"

if compare:
with open(pip_fname) as pip_fd:
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -288,4 +288,3 @@ check_untyped_defs=False

[mypy-pandas.util._decorators]
check_untyped_defs=False

1 change: 0 additions & 1 deletion web/pandas/community/coc.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ and the [Swift Code of Conduct][swift].
[homepage]: https://www.contributor-covenant.org
[version]: https://www.contributor-covenant.org/version/1/3/0/
[swift]: https://swift.org/community/#code-of-conduct

0 comments on commit 3cf204a

Please sign in to comment.