Skip to content

Commit b28f2d1

Browse files
authored
Remove init, PEP420PackageFinder handles this + it's breaking local dev installs (pip install -e .) (#200)
* Remove init, PEP420PackageFinder handles this * fix pytype * pytype needs an __init__.py
1 parent 607ca14 commit b28f2d1

File tree

5 files changed

+9
-27
lines changed

5 files changed

+9
-27
lines changed

.github/workflows/test_pr.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,20 @@ jobs:
6666
python --version
6767
pip install .[dev]
6868
python -m unittest
69-
pytype3_10:
70-
name: pytype 3.10
69+
pytype3_11:
70+
name: pytype 3.11
7171
runs-on: ubuntu-latest
7272
steps:
7373
- uses: actions/checkout@v3
7474
- uses: actions/setup-python@v4
7575
with:
76-
python-version: '3.10'
76+
python-version: '3.11'
7777
- name: Run pytype
7878
run: |
7979
python --version
8080
pip install .[dev]
8181
pip install -q gspread ipython
82+
touch google/__init__.py # https://github.com/google/pytype/issues/464
8283
pytype
8384
format:
8485
name: Check format with black

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ Use `pytype` (configured in `pyproject.toml`)
8080

8181
```
8282
pip install pytype
83+
touch google/__init__.py # https://github.com/google/pytype/issues/464
8384
pytype
85+
rm google/__init__.py
8486
```
8587

8688
### Formatting:

docs/build_docs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15+
#
16+
# pytype: skip-file
1517
r"""Api reference docs generation script, using tensorflow_docs
1618
1719
This script generates API reference docs for the reference doc generator.

google/__init__.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tool.pytype]
22
inputs = ['google', 'tests']
3+
exclude = ['build']
34

45
[tool.black]
56
line-length = 100

0 commit comments

Comments
 (0)