Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added mypy to CI tests #1

Merged
merged 1 commit into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
defaults:
run:
shell: bash -l {0}
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -42,6 +44,8 @@ jobs:
run: python3 -m pip install --upgrade pip
- name: Install Package
run: python3 -m pip install -e .[test] -e ./extras[test]
- name: MyPy
run: mypy --install-types --non-interactive .
- name: Pytest
run: pytest -vvs --cov fileformats --cov-config .coveragerc --cov-report xml .
- name: Upload coverage to Codecov
Expand Down
40 changes: 16 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,11 @@ name = "fileformats-CHANGEME"
description = "Classes for representing different file formats in Python classes for use in type hinting in data workflows"
readme = "README.rst"
requires-python = ">=3.8"
dependencies = [
"fileformats >= 0.4"
]
license = {file = "LICENSE"}
authors = [
{name = "<YOUR-NAME>", email = "<YOUR-EMAIL>"},
]
maintainers = [
{name = "<YOUR-NAME>", email = "<YOUR-EMAIL>"},
]
keywords = [
"file formats",
"data",
]
dependencies = ["fileformats >= 0.4"]
license = { file = "LICENSE" }
authors = [{ name = "<YOUR-NAME>", email = "<YOUR-EMAIL>" }]
maintainers = [{ name = "<YOUR-NAME>", email = "<YOUR-EMAIL>" }]
keywords = ["file formats", "data"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
Expand All @@ -38,18 +29,13 @@ classifiers = [
dynamic = ["version"]

[project.optional-dependencies]
dev = [
"black",
"pre-commit",
"codespell",
"flake8",
"flake8-pyproject",
]
dev = ["black", "pre-commit", "codespell", "flake8", "flake8-pyproject"]
test = [
"pytest >=6.2.5",
"pytest-env>=0.6.2",
"pytest-cov>=2.12.1",
"codecov",
"mypy >=1.5.1",
]

[project.urls]
Expand All @@ -73,9 +59,15 @@ ignore-words = ".codespell-ignorewords"

[tool.flake8]
doctests = true
per-file-ignores = [
"__init__.py:F401"
]
per-file-ignores = ["__init__.py:F401"]
max-line-length = 88
select = "C,E,F,W,B,B950"
extend-ignore = ['E203', 'E501', 'E129']

[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
strict = true
namespace_packages = true
explicit_package_bases = true
exclude = ["tests", "build", "dist"]
Loading