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

chore: update cruft #201

Merged
merged 4 commits into from
Dec 27, 2022
Merged

chore: update cruft #201

merged 4 commits into from
Dec 27, 2022

Conversation

lyz-code
Copy link
Owner

Checklist

  • Add test cases to all the changes you introduce
  • Update the documentation for the changes

@coveralls
Copy link

coveralls commented Dec 27, 2022

Pull Request Test Coverage Report for Build 3787130517

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.76%

Totals Coverage Status
Change from base Build 3786908237: 0.0%
Covered Lines: 415
Relevant Lines: 416

💛 - Coveralls

@lyz-code lyz-code merged commit 6726633 into main Dec 27, 2022
@lyz-code lyz-code deleted the chore/update-cruft branch December 27, 2022 11:35
@marcules
Copy link
Contributor

marcules commented Jan 1, 2023

@lyz-code since this upgrade I cannot use pdm run flakeheaven anymore as it seems like the resolved dependency for importlib_metadata is "too new" and should be pinned to 4.13.0, because of breaking changes / incompatibility to 5.0.0 - can you still use it?

PyCQA/flake8#1701
python/importlib_metadata#409

Traceback (most recent call last):
  File "/Users/marc/workspace/yamlfix/.venv/bin/flakeheaven", line 8, in <module>
    sys.exit(entrypoint())
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flakeheaven/_cli.py", line 40, in entrypoint
    exit_code, msg = main(argv)
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flakeheaven/_cli.py", line 32, in main
    return COMMANDS[command_name](argv=argv[1:])
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flakeheaven/commands/_lint.py", line 12, in lint_command
    app.run(argv)
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flake8/main/application.py", line 375, in run
    self._run(argv)
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flake8/main/application.py", line 363, in _run
    self.initialize(argv)
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flake8/main/application.py", line 343, in initialize
    self.find_plugins(config_finder)
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flakeheaven/_patched/_app.py", line 229, in find_plugins
    self.check_plugins = FlakeHeavenCheckers(local_plugins.extension)  # this line is changed
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flakeheaven/_patched/_plugins.py", line 67, in __init__
    local_plugins=local_plugins,
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flakeheaven/_patched/_plugins.py", line 47, in __init__
    self._load_entrypoint_plugins()
  File "/Users/marc/workspace/yamlfix/.venv/lib/python3.7/site-packages/flake8/plugins/manager.py", line 261, in _load_entrypoint_plugins
    eps = importlib_metadata.entry_points().get(self.namespace, ())
AttributeError: 'EntryPoints' object has no attribute 'get'

@lyz-code
Copy link
Owner Author

lyz-code commented Jan 2, 2023

Weird @marcules I am able to run it, have you updated the packages? make install

m install                                                [yamlfix](main)
pdm install --dev
Inside an active virtualenv /home/lyz/.local/share/virtualenvs/yamlfix, reuse it.
Synchronizing working set with lock file: 157 to add, 1 to update, 0 to remove

  ✔ Update setuptools 44.1.1 -> 65.6.3 successful
  ✔ Install astpretty 2.1.0 successful
  ✔ Install astor 0.8.1 successful
  ✔ Install autoimport 1.2.3 successful
  ✔ Install asttokens 2.2.1 successful
  ✔ Install autoflake 1.7.8 successful
  ✔ Install argcomplete 2.0.0 successful
  ✔ Install attrs 22.2.0 successful
  ✔ Install astroid 2.12.13 successful
  ✔ Install bandit 1.7.4 successful
  ✔ Install cfgv 3.3.1 successful
  ✔ Install certifi 2022.12.7 successful
  ✔ Install beautifulsoup4 4.11.1 successful
  ✔ Install bleach 5.0.1 successful
  ✔ Install cffi 1.15.1 successful
  ✔ Install black 22.12.0 successful
  ✔ Install charset-normalizer 2.1.1 successful
  ✔ Install colorama 0.4.6 successful
  ✔ Install click 8.1.3 successful
  ✔ Install commonmark 0.9.1 successful
  ✔ Install commitizen 2.38.0 successful
  ✔ Install coverage 7.0.1 successful
  ✔ Install decli 0.5.2 successful
  ✔ Install babel 2.11.0 successful
  ✔ Install distro 1.8.0 successful
  ✔ Install dill 0.3.6 successful
  ✔ Install distlib 0.3.6 successful
  ✔ Install dlint 0.13.0 successful
  ✔ Install cryptography 38.0.4 successful
  ✔ Install dparse 0.6.2 successful
  ✔ Install entrypoints 0.4 successful
  ✔ Install eradicate 2.1.0 successful
  ✔ Install exceptiongroup 1.1.0 successful
  ✔ Install filelock 3.8.2 successful
  ✔ Install execnet 1.9.0 successful
  ✔ Install flake8 4.0.1 successful
  ✔ Install docutils 0.19 successful
  ✔ Install flake8-aaa 0.12.2 successful
  ✔ Install flake8-annotations 2.9.1 successful
  ✔ Install flake8-annotations-complexity 0.0.7 successful
  ✔ Install flake8-bugbear 22.12.6 successful
  ✔ Install flake8-comprehensions 3.10.1 successful
  ✔ Install flake8-debugger 4.1.2 successful
  ✔ Install flake8-docstrings 1.6.0 successful
  ✔ Install flake8-eradicate 1.4.0 successful
  ✔ Install faker 15.3.4 successful
  ✔ Install flake8-expression-complexity 0.0.11 successful
  ✔ Install flake8-fixme 1.1.1 successful
  ✔ Install flake8-markdown 0.3.0 successful
  ✔ Install flake8-plugin-utils 1.3.2 successful
  ✔ Install flake8-pytest 1.4 successful
  ✔ Install flake8-pytest-style 1.6.0 successful
  ✔ Install flake8-simplify 0.19.3 successful
  ✔ Install flake8-typing-imports 1.12.0 successful
  ✔ Install flake8-variables-names 0.0.5 successful
  ✔ Install flakeheaven 3.2.1 successful
  ✔ Install freezegun 1.2.2 successful
  ✔ Install ghp-import 2.1.0 successful
  ✔ Install csscompressor 0.9.5 successful
  ✔ Install gitdb 4.0.10 successful
  ✔ Install gitpython 3.1.29 successful
  ✔ Install griffe 0.22.0 successful
  ✔ Install identify 2.5.11 successful
  ✔ Install importlib-metadata 5.2.0 successful
  ✔ Install flake8-use-fstring 1.4 successful
  ✔ Install idna 3.4 successful
  ✔ Install flake8-mutable 1.2.0 successful
  ✔ Install iniconfig 1.1.1 successful
  ✔ Install jaraco.classes 3.2.3 successful
  ✔ Install isort 5.11.4 successful
  ✔ Install jeepney 0.8.0 successful
  ✔ Install jinja2 3.1.2 successful
  ✔ Install htmlmin 0.1.12 successful
  ✔ Install keyring 23.13.1 successful
  ✔ Install maison 1.4.0 successful
  ✔ Install markdown-include 0.8.0 successful
  ✔ Install markdown 3.3.7 successful
  ✔ Install mccabe 0.6.1 successful
  ✔ Install mergedeep 1.3.4 successful
  ✔ Install markupsafe 2.1.1 successful
  ✔ Install jsmin 3.0.1 successful
  ✔ Install mkdocs-autolinks-plugin 0.6.0 successful
  ✔ Install mkdocs-autorefs 0.4.1 successful
  ✔ Install mkdocs-htmlproofer-plugin 0.10.2 successful
  ✔ Install mkdocs-git-revision-date-localized-plugin 1.1.0 successful
  ✔ Install mkdocs-material-extensions 1.1.1 successful
  ✔ Install mkdocs-minify-plugin 0.6.2 successful
  ✔ Install mkdocs-section-index 0.3.4 successful
  ✔ Install mkdocstrings 0.19.1 successful
  ✔ Install mkdocstrings-python 0.7.1 successful
  ✔ Install more-itertools 9.0.0 successful
  ✔ Install mypy-extensions 0.4.3 successful
  ✔ Install nodeenv 1.7.0 successful
  ✔ Install packaging 21.3 successful
  ✔ Install pathspec 0.10.3 successful
  ✔ Install pep8-naming 0.13.2 successful
  ✔ Install pbr 5.11.0 successful
  ✔ Install pkginfo 1.9.2 successful
  ✔ Install mkdocs 1.4.2 successful
  ✔ Install platformdirs 2.6.0 successful
  ✔ Install pluggy 1.0.0 successful
  ✔ Install pycodestyle 2.8.0 successful
  ✔ Install pre-commit 2.21.0 successful
  ✔ Install pycparser 2.21 successful
  ✔ Install prompt-toolkit 3.0.36 successful
  ✔ Install pydantic-factories 1.15.0 successful
  ✔ Install pydocstyle 6.1.1 successful
  ✔ Install pyflakes 2.4.0 successful
  ✔ Install pymdown-extensions 9.9 successful
  ✔ Install pyparsing 3.0.9 successful
  ✔ Install pylint 2.15.9 successful
  ✔ Install pygments 2.13.0 successful
  ✔ Install pyprojroot 0.2.0 successful
  ✔ Install pytest-cov 4.0.0 successful
  ✔ Install pytest 7.2.0 successful
  ✔ Install pytest-freezegun 0.4.2 successful
  ✔ Install pytest-xdist 3.1.0 successful
  ✔ Install pydantic 1.10.2 successful
  ✔ Install mypy 0.991 successful
  ✔ Install python-dateutil 2.8.2 successful
  ✔ Install pyyaml-env-tag 0.1 successful
  ✔ Install questionary 1.10.0 successful
  ✔ Install readme-renderer 37.3 successful
  ✔ Install lazy-object-proxy 1.8.0 successful
  ✔ Install pyyaml 6.0 successful
  ✔ Install requests 2.28.1 successful
  ✔ Install requests-toolbelt 0.10.1 successful
  ✔ Install rfc3986 2.0.0 successful
  ✔ Install pytz 2022.7 successful
  ✔ Install ruamel.yaml 0.17.21 successful
  ✔ Install rich 12.6.0 successful
  ✔ Install secretstorage 3.3.3 successful
  ✔ Install ruyaml 0.91.0 successful
  ✔ Install ruamel.yaml.clib 0.2.7 successful
  ✔ Install safety 2.3.5 successful
  ✔ Install six 1.16.0 successful
  ✔ Install smmap 5.0.0 successful
  ✔ Install tomli 2.0.1 successful
  ✔ Install snowballstemmer 2.2.0 successful
  ✔ Install termcolor 2.1.1 successful
  ✔ Install soupsieve 2.3.2.post1 successful
  ✔ Install toml 0.10.2 successful
  ✔ Install typing-extensions 4.4.0 successful
  ✔ Install stevedore 3.5.2 successful
  ✔ Install tomlkit 0.11.6 successful
  ✔ Install types-click 7.1.8 successful
  ✔ Install sh 1.14.3 successful
  ✔ Install twine 4.0.2 successful
  ✔ Install urllib3 1.26.13 successful
  ✔ Install watchdog 2.2.0 successful
  ✔ Install wcwidth 0.2.5 successful
  ✔ Install webencodings 0.5.1 successful
  ✔ Install xdg 5.1.1 successful
  ✔ Install wrapt 1.14.1 successful
  ✔ Install zipp 3.11.0 successful
  ✔ Install yamllint 1.28.0 successful
  ✔ Install virtualenv 20.17.1 successful
  ✔ Install mkdocs-material 8.5.11 successful
Installing the project as an editable package...
  ✔ Install yamlfix 1.3.0 successful

🎉 All complete!
m lint                                                   [yamlfix](main)
--------------------
- Testing the lint -
--------------------
pdm run flakeheaven lint src/ tests/
Inside an active virtualenv /home/lyz/.local/share/virtualenvs/yamlfix, reuse it.
Missing plugins:
flake8-markdown
pdm run isort src tests --check-only --df
Inside an active virtualenv /home/lyz/.local/share/virtualenvs/yamlfix, reuse it.
pdm run black --target-version py37 src tests --check --diff
Inside an active virtualenv /home/lyz/.local/share/virtualenvs/yamlfix, reuse it.
All done! ✨ 🍰 ✨
17 files would be left unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants