nickstenning: Thanks! This LGTM. The build is failing because I need to remove support for Python 2.6, but I'm going to go ahead and merge this as everything other than 2.6 is passing.
nickstenning: Actually just spotted one change (to the text of the docs) and if you could make that change and rebase on master that would be fab.
nickstenning: Great, thanks! LGTM.
diff --git a/doc/using_procfiles.rst b/doc/using_procfiles.rst
index 02cd95b..d11dc91 100644
--- a/doc/using_procfiles.rst
+++ b/doc/using_procfiles.rst
@@ -18,10 +18,10 @@ source tree that contains zero or more lines of the form::
 
     <process type>: <command>
 
-The ``process type`` is a string which may contain alphanumerics and underscores
-(``[A-Za-z0-9_]+``), and uniquely identifies one type of process which can be
-run to form your application. For example: ``web``, ``worker``, or
-``my_process_123``.
+The ``process type`` is a string which may contain alphanumerics as well as
+underscores and dashes (``[A-Za-z0-9_-]+``), and uniquely identifies one type
+of process which can be run to form your application. For example: ``web``,
+``worker``, or ``my_process_123``.
 
 ``command`` is a shell commandline which will be executed to spawn a process of
 the specified type.
diff --git a/honcho/environ.py b/honcho/environ.py
index 646d950..09448f3 100644
--- a/honcho/environ.py
+++ b/honcho/environ.py
@@ -13,7 +13,7 @@ if compat.ON_WINDOWS:
     import ctypes
 
 
-PROCFILE_LINE = re.compile(r'^([A-Za-z0-9_]+):\s*(.+)$')
+PROCFILE_LINE = re.compile(r'^([A-Za-z0-9_-]+):\s*(.+)$')
 
 
 class Env(object):

Dashes in process types
I believe that process types, according to this [Heroku page](https://devcenter.heroku.com/articles/procfile), must be alphanumeric.

If I create a Procfile with the following content

```
process-type-with-dashes: python -c 'print("hello")'
```

and then run `honcho start`, honcho fails silently.

Also, when I run `honcho check`, it says it is a valid Procfile.

Perhaps it would be helpful if:
- `honcho start` would complain if there is an invalid Procfile
- `honcho check` complains if the process types have dashes

I am using honcho v1.0.1 with python 3.7.0 on macOS.

Thank you for all of your work, I wish I had time to create a PR for this, but I figured creating an issue was better than nothing.
diff --git a/tests/test_environ.py b/tests/test_environ.py
index c7260a4..a9720d7 100644
--- a/tests/test_environ.py
+++ b/tests/test_environ.py
@@ -155,10 +155,17 @@ def test_environ_parse(content, commands):
     [
         # Invalid characters
         """
-        -foo: command
+        +foo: command
         """,
         {}
     ],
+    [
+        # Valid -/_ characters
+        """
+        -foo_bar: command
+        """,
+        {'-foo_bar': 'command'}
+    ],
     [
         # Shell metacharacters
         """

pip install -e .[export]
parse_log_pytest
requirements.txt
pytest
3.8
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
exceptiongroup==1.2.2
-e git+https://github.com/nickstenning/honcho.git@5abd2a2864cf4f46a10c3cfc4f4dfe55144cbd5b#egg=honcho
iniconfig==2.1.0
Jinja2==2.7.3
MarkupSafe==2.1.5
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
tomli==2.2.1

name: honcho
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=24.2=py38h06a4308_0
  - python=3.8.20=he870216_0
  - readline=8.2=h5eee18b_0
  - setuptools=75.1.0=py38h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.44.0=py38h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - exceptiongroup==1.2.2
      - iniconfig==2.1.0
      - jinja2==2.7.3
      - markupsafe==2.1.5
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - tomli==2.2.1
prefix: /opt/conda/envs/honcho

tests/test_environ.py::test_parse_procfile[\n
tests/test_environ.py::test_environ_parse[\n tests/test_environ.py::test_parse_procfile_ordered tests/test_environ.py::TestProcfile::test_has_no_processes_after_init tests/test_environ.py::TestProcfile::test_add_process tests/test_environ.py::TestProcfile::test_add_process_ensures_unique_name tests/test_environ.py::test_expand_processes_name tests/test_environ.py::test_expand_processes_name_multiple tests/test_environ.py::test_expand_processes_name_concurrency tests/test_environ.py::test_expand_processes_name_concurrency_multiple tests/test_environ.py::test_expand_processes_command tests/test_environ.py::test_expand_processes_port_not_defaulted tests/test_environ.py::test_expand_processes_port tests/test_environ.py::test_expand_processes_port_multiple tests/test_environ.py::test_expand_processes_port_from_env tests/test_environ.py::test_expand_processes_port_from_env_coerced_to_number tests/test_environ.py::test_expand_processes_port_from_env_overrides tests/test_environ.py::test_expand_processes_port_concurrency tests/test_environ.py::test_expand_processes_quiet tests/test_environ.py::test_expand_processes_quiet_multiple tests/test_environ.py::test_expand_processes_env tests/test_environ.py::test_expand_processes_env_multiple tests/test_environ.py::test_set_env_process_name
doc/using_procfiles.rst honcho/environ.py
doc/using_procfiles.rst honcho/environ.py