Giter VIP home page Giter VIP logo

Comments (43)

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024

These may not be necessary. See how debugging behaves and decide...

  • As in boilercv, modify last launch.json entry to permit temporary deeper debugging of failed tests.
    {
      "name": "Python: Current file, not just my code",
      "type": "python",
      "request": "launch",
      "program": "${file}",
      "justMyCode": false,
      // "purpose": ["debug-test"], // Temporarily uncomment to debug tests deeply.
      "console": "internalConsole"
    }

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Make pyproject.toml additions
    "F841",   # Don't check for or fix unused variables

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Implement requirements_nodeps.txt like in boilercv, including changes to "blakeNaccarato/[email protected]"

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Incorporate the advice in the latest Pylance documentation

https://github.com/microsoft/pylance-release/blob/main/USING_WITH_PYRIGHT.md

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Add local hooks like in captivate

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Rebuild docs when root-level Markdown files change, too, as in boilercv

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Wrap occurrences of ${file} and other similar variables in tasks.json and launch.json with single quotes to permit paths with spaces

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Compose pyproject.toml as local pre-commit hook

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Ensure ruff bumping script is actually working.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Back-propagate ruff GitHub Action from boilercv

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Try/catch version-related copier error in template bumping, updating copier if necessary

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Propagate pre-commit related changes back from boilercv

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Make tasks more verbose but more robust to commands with spaces in paths, etc.

For example, see the below task where ${file} may contain spaces. The more compact representation just uses pwsh as command and array ["-Command", "..."] as args, where "..." represents the input isolated at command below. The implementation below gracefully handles spaces (in a single-quoted VSCode variable as below), whereas the approach seen in copier-python template tasks right now is fragile to this.

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Sort by package identifier",
      "type": "shell",
      "options": {
        "shell": { "executable": "pwsh", "args": ["-Command"] }
      },
      "command": "Get-ChildItem '${file}' | Invoke-Python -Module sort_by_package_identifier | prettier --parser json | Set-Content '${file}'",
      "icon": { "id": "json" },
      "problemMatcher": []
    }
  ]
}

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Change pyrightconfig.json include statement to "include": ["src", "tests"] so that module renaming propagates to tests

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Exclude Pylance temporary files so they can be filtered in the problems pane

.vscode/settings.json

  //* Exclude problematic files in Problems panel filter and elsewhere
  "files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    "**/Thumbs.db": true,
    //? Pylance notebook cell temp files that get picked up in Problems pane before deletion
    "**/*pylance-notebook-cell*": true
  },

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Add GitHub annotations to Pytest output

https://github.com/pytest-dev/pytest-github-actions-annotate-failures

  • Add GitHub annotations to Pyright output

https://github.com/jordemort/action-pyright

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Figure out correct configuration of "git.commandsToLog": ["commit", "push"], to get pre-commit stdout showing in Output window. See boilerdata

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Add "active" question to the Copier template. Enable monthly checks for PRs based on its state.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Establish top-level .pre-commit-config.yaml to install all hooks by default and other things

See the docs. Be careful with default_stages, which will cause all things to run at a certain stage. Could be useful as pre-push, but probably unnecessary.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Expand documentation rebuilding to happen when deps/requirements change as wel

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Recommend setting the following in .gitconfig so that local submodules update upon pulling/syncing changes as well

Also need to explore why sometimes clicking the "sync" button to push changes to remote fails in VSCode GUI. Has something to do with the GUI trying to pull first. Change this behavior, possibly?

[submodule]
    recurse = true

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Consider pinning docutils to 0.17.1 until myst-parser allows later (e.g. 0.20 and up) docutils versions

See the page rendering issue when using a bibliography, though footbibliography works fine.

executablebooks/jupyter-book#1997 (comment)
https://jupyterbook.org/en/stable/content/citations.html

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Update core template configs, including disabling Renovate automerge.

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Consider the effect of bumping the pages upload action, as it now requires the user to chmod properly.

https://github.com/actions/upload-pages-artifact/releases/tag/v1.0.9

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Check that bumping myst-parser to 2.0 doesn't break websites when propagated to other templates

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Add git commit, git pull, and git push tasks

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Bump version of ruff in nbqa-ruff pre-commit hook alongside main ruff bump

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Add punctuation to readme and init where the Copier description goes

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Incorporate question about private/public repo, and disable tools like Sourcery or Pre-commit CI if the repo is private

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Make all pip install commands on the same line to reduce runaround during update.ps1

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Keep track of #349 and whether this breaks any deploys because chmod is not being done on every file anymore

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Pin flit in pyproject.toml

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Add fawltydeps to Renovate exclusions and manage the dependency here

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Propagate Python script-based warning filtering back here

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Introduce the all-contributors automation like nbQA has

https://github.com/nbQA-dev

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Don't wrap TXT files by default

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024
  • Fix template script

The $Recopy path always forces without questions due to --force. Remove that so the --defaults flag can function

    copier recopy --force $(if ($Defaults) { '--defaults' })

from copier-python.

blakeNaccarato avatar blakeNaccarato commented on August 27, 2024

Wow, guess I did most of this!

from copier-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.