Skip to content

Commit

Permalink
Remove more non ASCII stuff (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolomea authored Jun 28, 2019
1 parent 1066d4b commit ea99691
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 20 deletions.
32 changes: 16 additions & 16 deletions kedro/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ class ConfigLoader:
::
.
└── conf
   ├── README.md
├── base
   │   ├── catalog.yml
   │   ├── logging.yml
   │   └── experiment1
   │   └── parameters.yml
   └── local
      ├── catalog.yml
      ├── db.ini
      ├── experiment1
      │ ├── parameters.yml
      │ └── model_parameters.yml
      └── experiment2
      └── parameters.yml
  
`-- conf
|-- README.md
|-- base
| |-- catalog.yml
| |-- logging.yml
| `-- experiment1
| `-- parameters.yml
`-- local
|-- catalog.yml
|-- db.ini
|-- experiment1
| |-- parameters.yml
| `-- model_parameters.yml
`-- experiment2
`-- parameters.yml
You can access the different configurations as follows:
::
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
author="QuantumBlack Labs",
entry_points={"console_scripts": ["kedro = kedro.cli:main"]},
package_data={name: template_files + doc_html_files},
keywords="pipelines, machine learning, data pipelines, data science, data engineering",
keywords="pipelines, machine learning, data pipelines, data science, data engineering",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.5",
Expand Down
2 changes: 1 addition & 1 deletion tests/cli/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

"""
This file contains the fixtures that are reusable by any tests within
this directory. You dont need to import the fixtures as pytest will
this directory. You don't need to import the fixtures as pytest will
discover them automatically. More info here:
https://docs.pytest.org/en/latest/fixture.html
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

"""
This file contains the fixtures that are reusable by any tests within
this directory. You dont need to import the fixtures as pytest will
this directory. You don't need to import the fixtures as pytest will
discover them automatically. More info here:
https://docs.pytest.org/en/latest/fixture.html
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/io/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

"""
This file contains the fixtures that are reusable by any tests within
this directory. You dont need to import the fixtures as pytest will
this directory. You don't need to import the fixtures as pytest will
discover them automatically. More info here:
https://docs.pytest.org/en/latest/fixture.html
"""
Expand Down
12 changes: 12 additions & 0 deletions tools/license_and_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# limitations under the License.

import glob
import sys

PATHS_REQUIRING_HEADER = ["kedro", "tests"]
LEGAL_HEADER_FILE = "legal_header.txt"
Expand Down Expand Up @@ -77,6 +78,17 @@ def files_missing_substring(file_names, substring):
if content.strip() and substring not in content:
yield file_name

# In some locales Python 3.5 on Windows can't deal with non ascii chars in source files
try:
content.encode("ascii")
except UnicodeError as e:
print(
"Non ascii characters in {} after '{}'".format(
file_name, content[e.start - 30 : e.start]
)
)
yield file_name


def main():
exit_code = 0
Expand Down

0 comments on commit ea99691

Please sign in to comment.