Skip to content

Commit e41357a

Browse files
committed
style: add Python 2 encoding pragmas
1 parent e39d83b commit e41357a

12 files changed

Lines changed: 12 additions & 0 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repos:
1212
- id: mixed-line-ending
1313
- id: requirements-txt-fixer
1414
- id: trailing-whitespace
15+
- id: fix-encoding-pragma
1516

1617
- repo: https://github.com/asottile/pyupgrade
1718
rev: v2.19.1

noxfile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import nox
23
from pathlib import Path
34

scripts/convert_to_generic_platform_wheel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import argparse
23
import logging
34
import os

scripts/repair_wheel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
23

34
import argparse
45
import re

scripts/update_cmake_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
23
"""
34
Command line executable allowing to update CMakeUrls.cmake given a CMake
45
version.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
23

34
import os
45
import sys

src/cmake/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import os
23
import platform
34
import subprocess

src/cmake/_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
# This file helps to compute a version number in source trees obtained from
23
# git-archive tarball (such as those provided by githubs download-from-tag
34
# feature). Distribution tarballs (built by setup.py sdist) and build

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import sys
23

34
from contextlib import contextmanager

tests/test_cmake.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import pytest
23
import textwrap
34

0 commit comments

Comments
 (0)